Revert "Win: If the combined key is unknown then fall back to the original key pressed"
The change has been found to break Ctrl+C/V shortcuts when
using a Russian keyboard layout.
This reverts commit c6ecbd4762.
Task-number: QTBUG-61086
Change-Id: I0dce708b1a65b08ea10317d723c38b0414cbac7f
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
bb10
parent
600454578d
commit
c76b0c87b0
|
|
@ -971,8 +971,7 @@ bool QWindowsKeyMapper::translateKeyEventInternal(QWindow *window, const MSG &ms
|
|||
state = state ^ Qt::ShiftModifier;
|
||||
else if (code == Qt::Key_Alt)
|
||||
state = state ^ Qt::AltModifier;
|
||||
else if (code == 0 && modifiersIndex != 0)
|
||||
code = keyLayout[vk_key].qtKey[0];
|
||||
|
||||
// If the bit 24 of lParm is set you received a enter,
|
||||
// otherwise a Return. (This is the extended key bit)
|
||||
if ((code == Qt::Key_Return) && (msg.lParam & 0x1000000))
|
||||
|
|
|
|||
Loading…
Reference in New Issue