diff options
author | Gabriel de Dietrich <gabriel.dedietrich@qt.io> | 2016-10-27 15:32:17 -0700 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2016-11-15 21:05:41 +0000 |
commit | 25e67bcacac690be4971cfab16cd838653d0e7c6 (patch) | |
tree | cda6ae4634dd3e19662518d1c98c1b221ed28ddc /src/plugins/platforms/cocoa/qpaintengine_mac_p.h | |
parent | 62750a7dc0bacc4035a02989283a77aa8f4e29f7 (diff) |
Cocoa: Force sending key equivalent up events
Cocoa is known for not sending key up events for key equivalents,
regardless of whether it's an actual recognized key equivalent.
Notice that only Cmd-based shortcuts suffer from this feature.
We decide to force fate and forward the key event to the key
(focus) window. However, non-Qt windows will not (and should not)
get any special treatment, only QWindow-owned NSWindows. Since we
know that Cocoa will not send it to the key window, we can safely
forward it and ensure no duplicated key events.
Change-Id: I0449f7f5195a327eef6d792bd441fc3fd0882db1
Task-number: QTBUG-36839
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qpaintengine_mac_p.h')
0 files changed, 0 insertions, 0 deletions