diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-02-29 07:17:31 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-02-29 07:17:31 +0100 |
| commit | 5f2069871d00575717d998a2e1e3d398ec9137ef (patch) | |
| tree | 3eddf2746fa022211593f93cc23d813efe4abea8 /src/Fl_Screen_Driver.cxx | |
| parent | 367826979dc0cee609bf98e4b1e37c9019fbb4c6 (diff) | |
Move recognition of Ctrl= out of Fl::test_shortcut(unsigned)
Diffstat (limited to 'src/Fl_Screen_Driver.cxx')
| -rw-r--r-- | src/Fl_Screen_Driver.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Fl_Screen_Driver.cxx b/src/Fl_Screen_Driver.cxx index d63644e7c..623db30f6 100644 --- a/src/Fl_Screen_Driver.cxx +++ b/src/Fl_Screen_Driver.cxx @@ -485,6 +485,9 @@ int Fl_Screen_Driver::scale_handler(int event) if (Fl::test_shortcut(FL_COMMAND+'+')) zoom = zoom_in; else if (Fl::test_shortcut(FL_COMMAND+'-')) zoom = zoom_out; else if (Fl::test_shortcut(FL_COMMAND+'0')) zoom = zoom_reset; + // kludge to recognize shortcut FL_COMMAND+'+' without pressing SHIFT + else if ((Fl::event_state()&(FL_META|FL_ALT|FL_CTRL|FL_SHIFT)) == FL_COMMAND && + Fl::event_key() == '=') zoom = zoom_in; if (zoom != none) { int i, count; if (Fl::grab()) return 0; // don't rescale when menu windows are on |
