浏览代码

Fix wrong behavior of Action Map Editor with non QWERTY layouts

jmb462 4 年之前
父节点
当前提交
41e593552b
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      editor/action_map_editor.cpp

+ 0 - 2
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.
 		k->set_pressed(false); // to avoid serialisation of 'pressed' property - doesn't matter for actions anyway.
 		// Maintain physical keycode option state
 		// Maintain physical keycode option state
 		if (physical_key_checkbox->is_pressed()) {
 		if (physical_key_checkbox->is_pressed()) {
-			k->set_physical_keycode(k->get_keycode());
 			k->set_keycode(KEY_NONE);
 			k->set_keycode(KEY_NONE);
 		} else {
 		} else {
-			k->set_keycode((Key)k->get_physical_keycode());
 			k->set_physical_keycode(KEY_NONE);
 			k->set_physical_keycode(KEY_NONE);
 		}
 		}
 	}
 	}