Recognize X11/XCB keysyms Undo, Redo, Find, Cancel

Convert these keysyms into the corresponding Qt::Key_ enum values,
so that they can be part of a QKeySequence and used by applications.

Task-number: QTBUG-69062
Change-Id: I6f2e28191dd8dacd63d4bf710e1714fc5dcce75f
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
bb10
Jonathan Marten 2018-06-21 21:10:05 +01:00 committed by Gatis Paeglis
parent d88e0fd512
commit 558dd7f587
1 changed files with 7 additions and 0 deletions

View File

@ -138,6 +138,13 @@ static const unsigned int KeyTbl[] = {
XKB_KEY_KP_Decimal, Qt::Key_Period,
XKB_KEY_KP_Divide, Qt::Key_Slash,
// special non-XF86 function keys
XKB_KEY_Undo, Qt::Key_Undo,
XKB_KEY_Redo, Qt::Key_Redo,
XKB_KEY_Find, Qt::Key_Find,
XKB_KEY_Cancel, Qt::Key_Cancel,
// International input method support keys
// International & multi-key character composition