diff options
author | Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com> | 2015-11-18 15:17:14 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2015-11-30 13:42:47 +0000 |
commit | 86a8bcede091d0afe15c26b6fb2efcbf5989c13b (patch) | |
tree | b1f0d2ffbf6278d51bf45e62640cad7dedec6f35 /examples | |
parent | fe2e7b73402583e996c1fa05d78abd04a4d95b76 (diff) |
qquickwindow: handle QEvent::ShortcutOverride
After qtbase:c7e5e1d, QEvent::ShortcutOverride is no longer sent
directly to the focus object, but to the window. But since
QQuickWindow didn't catch it, it ended up nowhere.
This patch will implement the same strategy as QWidgetWindow, and
let QQuickWindow forward the ShortcutOverride event the same way
as key events.
Note that even if the event was never being delivered, the corresponding
key events would still end up in the focus object and trigger shortcuts.
But if a window global shortcut existed with the same key sequence, it would
grab the shortcut instead of the override, which was wrong.
Change-Id: I4ad7b3879adac14d88a3fbce5851409d0963d163
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions