Allow FL_COMMAND+'+' and FL_CTRL+'0' as menu shortcuts
This commit is contained in:
parent
77c726c79c
commit
2ea5291821
@ -77,6 +77,13 @@ int Fl::test_shortcut(unsigned int shortcut) {
|
||||
// kludge so that Ctrl+'_' works (as opposed to Ctrl+'^_'):
|
||||
if ((shift&FL_CTRL) && key >= 0x3f && key <= 0x5F
|
||||
&& firstChar==(key^0x40)) return 1; // firstChar should be within a-z
|
||||
|
||||
// kludge to recognize shortcut FL_COMMAND+'+'
|
||||
if (shift == FL_COMMAND && Fl::event_key() == '=' &&
|
||||
shortcut == FL_COMMAND + '+') return 1;
|
||||
// kludge to recognize shortcut FL_CTRL+'0' with Fr keyboard
|
||||
if (shift == FL_CTRL && !strcmp(Fl::event_text(), "à") &&
|
||||
shortcut == FL_CTRL + '0') return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user