diff options
author | Geoffroy Warin <code@geowarin.com> | 2022-02-12 20:40:39 +0100 |
---|---|---|
committer | Geoffroy Warin <code@geowarin.com> | 2022-02-12 20:40:39 +0100 |
commit | cf90394d10a1eaa263761e2f7526a004d8ab6404 (patch) | |
tree | 641516789282d8876ea6eaed9aa1e82cb4af7b58 /editor/plugins | |
parent | d3a6b6daaab4c8dfb7bdf35cc2fe2145ae6c22a1 (diff) |
use physical keys for numpad emulation in the editor
This allows non-qwerty keyboard to benefit from this features
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 3638ab241c..a76013a781 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -1883,7 +1883,7 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) { } if (EditorSettings::get_singleton()->get("editors/3d/navigation/emulate_numpad")) { - const Key code = k->get_keycode(); + const Key code = k->get_physical_keycode(); if (code >= Key::KEY_0 && code <= Key::KEY_9) { k->set_keycode(code - Key::KEY_0 + Key::KP_0); } |