Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

InputEventShortcut

继承: InputEvent < Resource < RefCounted < Object

代表触发的键盘快捷键 Shortcut

描述

InputEventShortcut 是一种可以在 Node._unhandled_key_input 中收到的特殊事件。通常由编辑器的“命令面板”发送,用于触发动作,但也可以使用 Viewport.push_input 手动发送。

属性

Shortcut

shortcut


属性说明

Shortcut shortcut

这个事件代表的 Shortcut。它的 Shortcut.matches_event 方法对这个事件始终返回 true