mirror of
https://github.com/fltk/fltk.git
synced 2026-06-02 07:26:57 +08:00
Document GUI scaling shortcuts - cont'd
This commit is contained in:
@@ -212,19 +212,8 @@ routine is triggered when \c Ctrl+ (or \c Cmd+) is pressed .
|
|||||||
If any window of the display is fullscreen or maximized,
|
If any window of the display is fullscreen or maximized,
|
||||||
scaling shortcuts have no effect.
|
scaling shortcuts have no effect.
|
||||||
|
|
||||||
It's possible to deactivate FLTK's default scaling shortcuts adding
|
It's possible to deactivate FLTK's default scaling shortcuts with function
|
||||||
this global event handler
|
Fl::keyboard_screen_scaling();
|
||||||
\code
|
|
||||||
int no_zoom_handler(int event) {
|
|
||||||
if (event != FL_SHORTCUT) return 0;
|
|
||||||
if (Fl::test_shortcut(FL_COMMAND+'+')) return 1;
|
|
||||||
if (Fl::test_shortcut(FL_COMMAND+'-')) return 1;
|
|
||||||
if (Fl::test_shortcut(FL_COMMAND+'0')) return 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
\endcode
|
|
||||||
with statement \c Fl::add_handler(no_zoom_handler); after FLTK has opened the
|
|
||||||
display.
|
|
||||||
|
|
||||||
\section events_widget Widget Events
|
\section events_widget Widget Events
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user