Hotkey

interface Hotkey

表示快捷键键的接口

Author

M8Test, [email protected], https://m8test.com

Inheritors

Functions

Link copied to clipboard
abstract fun getCode(): Int

获取键码

Link copied to clipboard
abstract fun isAltPressed(): Boolean

是否需要 alt 键被按下

Link copied to clipboard
abstract fun isCtrlPressed(): Boolean

是否需要 ctrl 键被按下

Link copied to clipboard
abstract fun isFunctionPressed(): Boolean

是否需要 function 键被按下

Link copied to clipboard
abstract fun isMetaPressed(): Boolean

是否需要 meta 键被按下

Link copied to clipboard
abstract fun isShiftPressed(): Boolean

是否需要 shift 键被按下

Link copied to clipboard
abstract fun isSymPressed(): Boolean

是否需要 syn 键被按下

Link copied to clipboard
abstract fun setEnabled(enabled: Boolean)

设置快捷键是否可用.