SameBoy/Cocoa/NSString+StringForKey.m
2016-04-13 22:43:16 +03:00

13 lines
291 B
Objective-C

#import "NSString+StringForKey.h"
#import "NSKeyboardShortcut.h"
@implementation NSString (StringForKey)
+ (NSString *) displayStringForKeyString: (NSString *)key_string
{
return [[NSKeyboardShortcut shortcutWithKeyEquivalent:key_string modifierMask:0] localizedDisplayName];
}
@end