2
0
Fork 0

Merge pull request #58024 from geowarin/master

use physical keys for numpad emulation in the editor
4.0
Rémi Verschelde 2022-05-05 08:35:11 +07:00 committed by GitHub
commit 90da6ad9b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -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);
}