[Interest] What is Qt::Key_Cancel?

Tor Arne Vestbø Tor.arne.Vestbo at qt.io
Thu Jul 9 12:41:14 CEST 2020


It’s mapped to e.g. VK_CANCEL on Windows:

❯ git grep Key_Cancel                                                                                          
dist/changes-4.2.0:1246:      * Added several missing keys to the Key enum: Key_Cancel, Key_Printer,
src/corelib/global/qnamespace.h:1060:        Key_Cancel  = 0x01020001,
src/corelib/global/qnamespace.qdoc:1829:    \value Key_Cancel
src/gui/kernel/qkeysequence.cpp:693:    { Qt::Key_Cancel,  QT_TRANSLATE_NOOP("QShortcut", "Cancel") },
src/gui/platform/unix/qxkbcommon.cpp:163:        Xkb2Qt<XKB_KEY_Cancel,                  Qt::Key_Cancel>,
src/platformsupport/input/evdevkeyboard/qevdevkeyboard_defaultmap_p.h:664:    { KEY_CANCEL,       0xffff, Qt::Key_Cancel,         0x00, 0x00, 0x0000 },
src/plugins/platforms/windows/qwindowskeymapper.cpp:214:    Qt::Key_Cancel,     //   3   0x03   VK_CANCEL           | Control-Break processing

Don’t know what physical key would produce this.

Tor Arne 


> On 9 Jul 2020, at 12:13, Oleg Evseev <ev.mipt at gmail.com> wrote:
> 
> Hi,
> 
> There are Key_Escape, Key_Back, but I wonder what causes Key_Cancel event on Desktop and Android?
> 
> ---
> With regards, Oleg.
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest



More information about the Interest mailing list