You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
[Input] Do not add key labels to the default actions, to display it correctly in the UI.
This commit is contained in:
@@ -478,7 +478,6 @@ Ref<InputEventKey> InputEventKey::create_reference(Key p_keycode) {
|
|||||||
Ref<InputEventKey> ie;
|
Ref<InputEventKey> ie;
|
||||||
ie.instantiate();
|
ie.instantiate();
|
||||||
ie->set_keycode(p_keycode & KeyModifierMask::CODE_MASK);
|
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));
|
ie->set_unicode(char32_t(p_keycode & KeyModifierMask::CODE_MASK));
|
||||||
|
|
||||||
if ((p_keycode & KeyModifierMask::SHIFT) != Key::NONE) {
|
if ((p_keycode & KeyModifierMask::SHIFT) != Key::NONE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user