IKeyboardEvent
interface in UnityEngine.UIElements
Description 描述
Interface for keyboard events.
Properties 属性
| actionKey | Returns true if the platform specific action key is pressed. This key is Command on macOS and Control otherwise. | ||
| altKey | Return true if the Alt key is pressed. | ||
| character | The character. | ||
| commandKey | Return true if the Windows/Command key is pressed. | ||
| ctrlKey | Return true if the Control key is pressed. | ||
| keyCode | The key code. | ||
| modifiers | Flag set holding the pressed modifier keys (Alt, Control, Shift, Windows/Command). | ||
| shiftKey | Return true if the Shift key is pressed. |