From cf90394d10a1eaa263761e2f7526a004d8ab6404 Mon Sep 17 00:00:00 2001 From: Geoffroy Warin Date: Sat, 12 Feb 2022 20:40:39 +0100 Subject: use physical keys for numpad emulation in the editor This allows non-qwerty keyboard to benefit from this features --- editor/plugins/node_3d_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/plugins') 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 &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); } -- cgit v1.2.3