]> git.mxchange.org Git - flightgear.git/commitdiff
Cocoa: more Function-key shortcuts in menus
authorJames Turner <zakalawe@mac.com>
Sun, 24 Nov 2013 17:25:02 +0000 (17:25 +0000)
committerJames Turner <zakalawe@mac.com>
Sun, 24 Nov 2013 17:25:02 +0000 (17:25 +0000)
src/GUI/FGCocoaMenuBar.mm

index 254e3e0c0c523d8d4a3172736772578773088811..9ec02523a6563b1eca4367caf429a082f24e2e0f 100644 (file)
@@ -69,7 +69,15 @@ public:
 static void setFunctionKeyShortcut(const std::string& shortcut, NSMenuItem* item)
 {
     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;
     } else if (shortcut == "F12") {
         shortcutChar = NSF12FunctionKey;