Experimental: this API is experimental and might be changed or removed in the future.

IKeyboardEvent

interface in UnityEngine.Experimental.UIElements

Switch to Manual

Description

键盘事件接口。

Variables

actionKeyReturns true if the platform specific action key is pressed. This key is Command on macOS and Control otherwise.
altKey如果按下 Alt 键,则返回 true。
character字符。
commandKey如果按下 Windows/Command 键,则返回 true。
ctrlKey如果按下 Control 键,则返回 true。
keyCode键代码。
modifiers标志集,用于保存所按修改键(Alt、Control、Shift、Windows/Command)。
shiftKey如果按下 Shift 键,则返回 true。