diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-06-12 17:58:41 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-06-26 16:32:20 +0000 |
commit | 198b67d14bf3ca76d6bdf8901348da0838cf3b8d (patch) | |
tree | 422caf8fa39cd8093a69aea17698edb8cdf3dfeb /src/plugins/platforms/xcb/qxcbbackingstore.cpp | |
parent | 3851a8ff20c6aed0807bfdc4588ae108a2b108ec (diff) |
macOS: Send text input and key events to focus object of window, not app
The key events and input method callbacks coming from Cocoa are targeted
at our specific NSView, so we should deliver them to the focus object of
the corresponding QWindow, not the global application focus object.
This means that we'll deliver key events to windows also when they are
not key (active), but this is intentional, as we would otherwise fail
to deliver input method events coming from e.g. the emoji/symbol picker,
which steals the key window when active.
Task-number: QTBUG-61359
Change-Id: I61326c08ad8bbd0c535b3cc8a67d0ceeec7ee910
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbbackingstore.cpp')
0 files changed, 0 insertions, 0 deletions