mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 11:42:30 +00:00
do not attempt to transale an invalid key
This commit is contained in:
@@ -33,6 +33,9 @@ uint16_t const kMPUnknownKeyCode = UINT16_MAX;
|
||||
}
|
||||
|
||||
+ (NSString *)stringForModifiedKey:(MPModifiedKey)modifiedKey {
|
||||
if(modifiedKey.keyCode == kMPUnknownKeyCode) {
|
||||
return nil;
|
||||
}
|
||||
TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource();
|
||||
CFDataRef layoutData = TISGetInputSourceProperty(currentKeyboard,kTISPropertyUnicodeKeyLayoutData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user