Fl_Sys_Menu_Bar: allow use of escape and tab as menu shortcuts.
This commit is contained in:
parent
2241bab478
commit
f582e06224
@ -177,7 +177,11 @@ const char *Fl_Mac_App_Menu::quit = "Quit %@";
|
||||
if ( (key >= (FL_F+1)) && (key <= FL_F_Last) ) { // Handle function keys
|
||||
int fkey_num = (key - FL_F); // 1,2..
|
||||
mac_key = NSF1FunctionKey + fkey_num - 1;
|
||||
}
|
||||
} else if (key == FL_Escape) {
|
||||
mac_key = 27;
|
||||
} else if (key == FL_Tab) {
|
||||
mac_key = 9;
|
||||
}
|
||||
[self setKeyEquivalent:[NSString stringWithCharacters:&mac_key length:1]];
|
||||
[self setKeyEquivalentModifierMask:mod];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user