summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-03-25 14:51:48 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-03-25 14:51:57 +0100
commit9d7e680925b60648354c4fb5f3fe2e09d9d9e3b6 (patch)
treea692e7169aeade1c3524aefcc9387687699beef5
parentf3423d3e83131f1c52b1d913d5879ff66840c9b2 (diff)
Wayland: Fl::get_key(c) for lower case letters different behavior from X11 (#404)
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
index 7f0d7f8cd..07eabfd42 100644
--- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
@@ -1580,6 +1580,7 @@ void *Fl_Wayland_Screen_Driver::control_maximize_button(void *data) {
int Fl_Wayland_Screen_Driver::event_key(int k) {
+ if (k >= 'a' && k <= 'z') k -= 32;
return (search_int_vector(key_vector, k) >= 0);
}