SameBoy/Cocoa/NSString+StringForKey.m

13 lines
291 B
Mathematica
Raw Normal View History

2016-04-13 19:43:16 +00:00
#import "NSString+StringForKey.h"
#import "NSKeyboardShortcut.h"
@implementation NSString (StringForKey)
+ (NSString *) displayStringForKeyString: (NSString *)key_string
{
return [[NSKeyboardShortcut shortcutWithKeyEquivalent:key_string modifierMask:0] localizedDisplayName];
}
@end