macOS: Remove shadowed variable in handleKeyEvent

Change-Id: Icf9f9ecf673a10a15a2d0156bcd5c1da3688b591
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Tor Arne Vestbø 2022-12-02 15:19:20 +01:00
parent b2e5d54726
commit 8eab4e4850

View File

@ -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))