KeyHandlerInput // +isFunctionKeyHold

This commit is contained in:
ShikiSuen 2022-03-25 20:48:40 +08:00
parent 5c10c3bddc
commit 3f00bfef2e
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@ class KeyHandlerInput: NSObject {
flags.contains([.numericPad])
}
@objc var isFunctionKeyHold: Bool {
flags.contains([.function])
}
@objc var isReservedKey: Bool {
guard let code = KeyCode(rawValue: keyCode) else {
return false