summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-12-02 15:19:20 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-12-05 15:58:29 +0100
commit8eab4e4850a0778335cca167ade3f5c177586349 (patch)
tree23f662738d2794d4f7eca28302502d25a203f7fd
parentb2e5d547263f297a7a8f37e8ad5cded7e66f93c9 (diff)
macOS: Remove shadowed variable in handleKeyEvent
Change-Id: Icf9f9ecf673a10a15a2d0156bcd5c1da3688b591 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--src/plugins/platforms/cocoa/qnsview_keys.mm1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qnsview_keys.mm b/src/plugins/platforms/cocoa/qnsview_keys.mm
index dab99e0855..118678ffa5 100644
--- a/src/plugins/platforms/cocoa/qnsview_keys.mm
+++ b/src/plugins/platforms/cocoa/qnsview_keys.mm
@@ -109,7 +109,6 @@ static bool isSpecialKey(const QString &text)
bool accepted = true;
if (m_sendKeyEvent && m_composingText.isEmpty()) {
- KeyEvent keyEvent(nsevent);
// Trust text input system on whether to send the event with text or not,
// or otherwise apply heuristics to filter out private use symbols.
if (didInterpretKeyEvent ? m_sendKeyEventWithoutText : isSpecialKey(keyEvent.text))