1
0
Fork 0

Cocoa: more Function-key shortcuts in menus

This commit is contained in:
James Turner 2013-11-24 17:25:02 +00:00
parent d99109c9e4
commit 77075a2d66

View file

@ -69,7 +69,15 @@ public:
static void setFunctionKeyShortcut(const std::string& shortcut, NSMenuItem* item) static void setFunctionKeyShortcut(const std::string& shortcut, NSMenuItem* item)
{ {
unichar shortcutChar = NSF1FunctionKey; unichar shortcutChar = NSF1FunctionKey;
if (shortcut == "F11") { if (shortcut == "F1") {
shortcutChar = NSF1FunctionKey;
} else if (shortcut == "F2") {
shortcutChar = NSF2FunctionKey;
} else if (shortcut == "F3") {
shortcutChar = NSF3FunctionKey;
} else if (shortcut == "F10") {
shortcutChar = NSF10FunctionKey;
} else if (shortcut == "F11") {
shortcutChar = NSF11FunctionKey; shortcutChar = NSF11FunctionKey;
} else if (shortcut == "F12") { } else if (shortcut == "F12") {
shortcutChar = NSF12FunctionKey; shortcutChar = NSF12FunctionKey;