summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-05 08:35:11 +0200
committerGitHub <noreply@github.com>2022-05-05 08:35:11 +0200
commit90da6ad9b4b6824bad8d68fde1840ecf56ae7fe4 (patch)
treeb008204f24779941051f6bb7cdf89962b8cb7a9f /editor
parent30f3c4255e506c25e3273906c01127f8614540bc (diff)
parentcf90394d10a1eaa263761e2f7526a004d8ab6404 (diff)
Merge pull request #58024 from geowarin/master
use physical keys for numpad emulation in the editor
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp2
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 e0fc42165b..23ff7fc7d6 100644
--- a/editor/plugins/node_3d_editor_plugin.cpp
+++ b/editor/plugins/node_3d_editor_plugin.cpp
@@ -1888,7 +1888,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);
}