From 9c1096f4f6e6c7089fbe9e85e1aa398e84384e9b Mon Sep 17 00:00:00 2001 From: Tuomas Vaarala Date: Fri, 31 May 2024 10:55:51 +0300 Subject: [PATCH] [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 (cherry picked from commit cc89c4c76567184b2887952dfe44375ff3ebd28d) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 8f50ece5fa3a5fe6751681e0a6530e51037b6acb) --- src/plugins/platforms/qnx/qqnxkeytranslator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/qnx/qqnxkeytranslator.h b/src/plugins/platforms/qnx/qqnxkeytranslator.h index 824f7ad523b..5e0dd56e2e3 100644 --- a/src/plugins/platforms/qnx/qqnxkeytranslator.h +++ b/src/plugins/platforms/qnx/qqnxkeytranslator.h @@ -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;