summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmb462 <jmb462@gmail.com>2021-09-14 18:10:03 +0200
committerjmb462 <jmb462@gmail.com>2021-09-14 18:10:03 +0200
commit41e593552b9f59c6ba416f5229490d8b32fb0997 (patch)
tree56b24a2dbdd12ae4a344a4762b3f7c63cc78ae1c
parenta9b600bac0a9a8fdd3b217c6d3cb6639ae80c1f8 (diff)
Fix wrong behavior of Action Map Editor with non QWERTY layouts
-rw-r--r--editor/action_map_editor.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/editor/action_map_editor.cpp b/editor/action_map_editor.cpp
index 7aa63f899b..6789b5be00 100644
--- a/editor/action_map_editor.cpp
+++ b/editor/action_map_editor.cpp
@@ -248,10 +248,8 @@ void InputEventConfigurationDialog::_listen_window_input(const Ref<InputEvent> &
k->set_pressed(false); // to avoid serialisation of 'pressed' property - doesn't matter for actions anyway.
// Maintain physical keycode option state
if (physical_key_checkbox->is_pressed()) {
- k->set_physical_keycode(k->get_keycode());
k->set_keycode(KEY_NONE);
} else {
- k->set_keycode((Key)k->get_physical_keycode());
k->set_physical_keycode(KEY_NONE);
}
}