diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-10 16:06:04 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-10 16:06:04 +0100 |
| commit | 5b26d2b203ba68d94e1dfa3e46b7198fc6b2969b (patch) | |
| tree | 50f442863653508e8354e79435378017a38b82dc /src | |
| parent | d5c47132ef0dd5b787fbcf624735201cd885de3b (diff) | |
Fix for issue #404 about Fl::get_key(int).
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_System_Driver.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_System_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_System_Driver.cxx index 96a4c16cd..46351646c 100644 --- a/src/drivers/Wayland/Fl_Wayland_System_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_System_Driver.cxx @@ -37,6 +37,7 @@ int Fl_Wayland_System_Driver::event_key(int k) { return Fl::event_state(8<<(k-FL_Button)); int sym = Fl::event_key(); if (sym >= 'a' && sym <= 'z' ) sym -= 32; + if (k >= 'a' && k <= 'z' ) k -= 32; return (Fl::event() == FL_KEYDOWN || Fl::event() == FL_SHORTCUT) && sym == k; } |
