[QNX] Return Qt::Key_Clear when numpad key 5 is pressed without num lock
Based on the documentation, the numeric keypad key 5 is commonly mapped to Qt::Key_Clear, when Num Lock is off. Previously the number 5 was returned also when the Num Lock is off which caused an ui application being unable to disable the numpad key number 5 when numlock is off. Fixes: QTBUG-125958 Pick-to: 6.5 Change-Id: I62f7521376890a201cd11abf78847bcb0eb1752a Reviewed-by: James McDonnell <jmcdonnell@blackberry.com> (cherry picked from commit cc89c4c76567184b2887952dfe44375ff3ebd28d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 8f50ece5fa3a5fe6751681e0a6530e51037b6acb)
This commit is contained in:
parent
6771f66fae
commit
9c1096f4f6
@ -55,7 +55,7 @@ int qtKeyForPrivateUseQnxKey( int key )
|
||||
case KEYCODE_KP_UP: return Qt::Key_Up;
|
||||
case KEYCODE_KP_PG_UP: return Qt::Key_PageUp;
|
||||
case KEYCODE_KP_LEFT: return Qt::Key_Left;
|
||||
case KEYCODE_KP_FIVE: return Qt::Key_5;
|
||||
case KEYCODE_KP_FIVE: return Qt::Key_Clear;
|
||||
case KEYCODE_KP_RIGHT: return Qt::Key_Right;
|
||||
case KEYCODE_KP_END: return Qt::Key_End;
|
||||
case KEYCODE_KP_DOWN: return Qt::Key_Down;
|
||||
|
Loading…
x
Reference in New Issue
Block a user