summaryrefslogtreecommitdiff
path: root/editor/editor_name_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_name_dialog.cpp')
-rw-r--r--editor/editor_name_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_name_dialog.cpp b/editor/editor_name_dialog.cpp
index 7435e9a9f7..6ebfcbf313 100644
--- a/editor/editor_name_dialog.cpp
+++ b/editor/editor_name_dialog.cpp
@@ -42,8 +42,8 @@ void EditorNameDialog::_line_gui_input(const Ref<InputEvent> &p_event) {
return;
switch (k->get_scancode()) {
- case KEY_ENTER:
- case KEY_RETURN: {
+ case KEY_KP_ENTER:
+ case KEY_ENTER: {
if (get_hide_on_ok())
hide();