Hallo,
I am currently trying to enable Apple+Arrow shortcuts for cycling through
my application windows (as e.g. Terminal.app or X11.app do).
So far I have done the following:
//-------------------------------------------------------------
// callback function definition
int cb_next_window(int event) {
if (event == FL_SHORTCUT) {
if (Fl::event_key(FL_COMMAND) && Fl::event_key(FL_Right)) {
Fl::next_window(NULL)->show();
return 1;
}
}
return 0;
}
// activating the callback in main()
// ...
Fl::add_handler(cb_next_window);
//-------------------------------------------------------------
Even though the callback is entered and recognised as an FL_SHORTCUT event,
the Apple+Right key combination is not recognised.
Does someone know how to check for a key combination in a shortcut?
Thanks,
Christoph
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk