diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2017-08-06 16:26:07 +0300 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2017-08-06 16:26:07 +0300 |
commit | 7b7c7c8dc0e3572a7d66d274b3e4db43695ce814 (patch) | |
tree | 25d57da6ca8f480f0012b10935b96caba6eda32d /scene/gui/line_edit.cpp | |
parent | 97e942dd42ea5df241e1e81704eaa6c383f3c9b4 (diff) | |
download | redot-engine-7b7c7c8dc0e3572a7d66d274b3e4db43695ce814.tar.gz |
Rename KEY_RETURN to KEY_ENTER and KEY_ENTER to KEY_KP_ENTER
Closes #7695
Diffstat (limited to 'scene/gui/line_edit.cpp')
-rw-r--r-- | scene/gui/line_edit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index f4dd3e92cd..8556ce5db1 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -229,8 +229,8 @@ void LineEdit::_gui_input(Ref<InputEvent> p_event) { bool handled = true; switch (code) { - case KEY_ENTER: - case KEY_RETURN: { + case KEY_KP_ENTER: + case KEY_ENTER: { emit_signal("text_entered", text); if (OS::get_singleton()->has_virtual_keyboard()) |