diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-06-28 16:13:52 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-06-30 12:58:33 +0200 |
commit | a5c6329829ba8565fb3fe5fd546e9d5f1a8fb71d (patch) | |
tree | 78759c49aace26d5eac1676f7f5ee04c23b4eccf /src/gui/kernel/qpointingdevice.cpp | |
parent | 3021b1ecb7e1ec6e75e851c44f8ded9b8552235b (diff) |
Pass correct modifier to QCocoaKeyMapper::toKeyCode()
The modifierKeyState variable is based on the Carbon modifiers, and
then further mangled to match the expected format of UCKeyTranslate.
But inside QCocoaKeyMapper::toKeyCode() we compare the modifiers to
Qt::KeyboardModifiers.
To ensure the logic works as expected we need to pass in the Qt
modifiers. This fixes shortcut sequences based on "Backtab".
Change-Id: I089fe601f0fe7a92f746e0a6447e2de0d974d0b2
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/gui/kernel/qpointingdevice.cpp')
0 files changed, 0 insertions, 0 deletions