From fc57a518362741207c155bb23c4b46e1b4ed3e02 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 25 Aug 2024 12:06:59 +0200 Subject: [PATCH] Fix Fl_Wayland_Screen_Driver::compose() to handle the FL_Alt_Gr key --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 0125bfc07..7a376efb4 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -680,8 +680,8 @@ int Fl_Wayland_Screen_Driver::compose(int& del) { // pressing modifier key // FL_Shift_L, FL_Shift_R, FL_Control_L, FL_Control_R, FL_Caps_Lock // FL_Meta_L, FL_Meta_R, FL_Alt_L, FL_Alt_R - // TODO: FL_Alt_Gr - condition |= (Fl::e_keysym >= FL_Shift_L && Fl::e_keysym <= FL_Alt_R); + condition |= ((Fl::e_keysym >= FL_Shift_L && Fl::e_keysym <= FL_Alt_R) || + Fl::e_keysym == FL_Alt_Gr); // FL_Home FL_Left FL_Up FL_Right FL_Down FL_Page_Up FL_Page_Down FL_End // FL_Print FL_Insert FL_Menu FL_Help and more condition |= (Fl::e_keysym >= FL_Home && Fl::e_keysym <= FL_Help);