diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/gui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 8068ffad7..9441677a6 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -376,8 +376,10 @@ bool Gui::handleKeyInput2() keyInput.getType(), keyInput.isNumericPad(), keyInput.getActionId(), keyInput.getKey()); +#ifdef USE_SDL2 if (!keyInput.getText().empty()) keyEventToGlobalKeyListeners.setText(keyInput.getText()); +#endif distributeKeyEventToGlobalKeyListeners( keyEventToGlobalKeyListeners); @@ -401,8 +403,10 @@ bool Gui::handleKeyInput2() mShiftPressed, mControlPressed, mAltPressed, mMetaPressed, keyInput.getType(), keyInput.isNumericPad(), keyInput.getActionId(), keyInput.getKey()); +#ifdef USE_SDL2 if (!keyInput.getText().empty()) keyEvent.setText(keyInput.getText()); +#endif if (!mFocusHandler->getFocused()->isFocusable()) mFocusHandler->focusNone(); |