diff options
author | Alexander Volkov <a.volkov@rusbitech.ru> | 2014-09-18 16:16:26 +0400 |
---|---|---|
committer | Gunnar Sletta <gunnar@sletta.org> | 2015-08-18 06:27:30 +0000 |
commit | be18d6fb01749184d40cdcd079e685d220ff8b80 (patch) | |
tree | 3df894856fab6c691cd39c49dd69a768f8929a44 /src/platformsupport | |
parent | 08150122aaf0e1da706346497cf9767534a455b0 (diff) |
Fix shortcuts with keypad keys
The way of searching a shortcut match for a key without the keypad
modifier introduced in 547a1bea492954d828aa0798be93384669812489 is
not correct. QKeyEvent::setModifiers() doesn't change native scan code
so we get the incorrect QKeyEvent object which is eventually passed to
the implementation of QPlatformIntegration::possibleKeys().
And then QPlatformIntegration::possibleKeys() returns the same result
as for the original QKeyEvent object.
So to fix it we have to remove Qt::KeypadModifier from keys after
calling the implementation of QPlatformIntegration::possibleKeys(),
as it was before 547a1bea492954d828aa0798be93384669812489.
Task-number: QTBUG-33093
Task-number: QTBUG-44577
Change-Id: I5b33c9b6cf2c06b133166a31eba9aff9181c9483
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/platformsupport')
0 files changed, 0 insertions, 0 deletions