summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-07-27 19:44:25 +0200
committerGitHub <noreply@github.com>2016-07-27 19:44:25 +0200
commit8a01655db596866b7ab0a7488b18d19501c7da75 (patch)
tree5133f55672f9932d10a2ed0e0fdffc37a3fde610
parentea17094c4f3714ac906c3706e9888d2b4ddcede0 (diff)
parent35cb8ff89e1c1871e7ad3383b524b2ebf82dfa3e (diff)
Merge pull request #5941 from neikeq/pr-regression-5271
LineEdit: Fix event handled as text when a mod key is pressed
-rw-r--r--scene/gui/line_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index 89c235e101..fcea12fd6b 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -468,7 +468,7 @@ void LineEdit::_input_event(InputEvent p_event) {
if (handled) {
accept_event();
- } else {
+ } else if (!k.mod.alt && !k.mod.command) {
if (k.unicode>=32 && k.scancode!=KEY_DELETE) {
if (editable) {