mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Rename scancode
to keycode
.
Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
This commit is contained in:
parent
376a8255a9
commit
1af06d3d46
78 changed files with 736 additions and 299 deletions
|
@ -1820,7 +1820,7 @@ void VisualScriptEditor::_fn_name_box_input(const Ref<InputEvent> &p_event) {
|
|||
return;
|
||||
|
||||
Ref<InputEventKey> key = p_event;
|
||||
if (key.is_valid() && key->is_pressed() && key->get_scancode() == KEY_ENTER) {
|
||||
if (key.is_valid() && key->is_pressed() && key->get_keycode() == KEY_ENTER) {
|
||||
function_name_edit->hide();
|
||||
_rename_function(selected, function_name_box->get_text());
|
||||
function_name_box->clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue