浏览代码

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.
Rémi Verschelde 2 年之前
父节点
当前提交
5df9a84128
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      core/input/input_event.cpp

+ 0 - 1
core/input/input_event.cpp

@@ -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) {