Merge pull request #71968 from bruvzg/def_keys_no_label

[Input] Do not add key labels to the default actions, to display it correctly in the UI.
This commit is contained in:
Rémi Verschelde 2023-01-25 09:15:13 +01:00
commit 5df9a84128
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -478,7 +478,6 @@ Ref<InputEventKey> InputEventKey::create_reference(Key p_keycode) {
Ref<InputEventKey> ie;
ie.instantiate();
ie->set_keycode(p_keycode & KeyModifierMask::CODE_MASK);
ie->set_key_label(p_keycode & KeyModifierMask::CODE_MASK);
ie->set_unicode(char32_t(p_keycode & KeyModifierMask::CODE_MASK));
if ((p_keycode & KeyModifierMask::SHIFT) != Key::NONE) {