Merge pull request #52202 from jmb462/fix-wrong-behavior-action-editor-with-non-qwerty-layouts

Fix wrong behavior of Action Map Editor with non QWERTY layouts (Fix #52169)
This commit is contained in:
Rémi Verschelde 2021-09-14 20:57:10 +02:00 committed by GitHub
commit 0c11fe0008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}