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