summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2024-08-23 12:43:21 +0200
committerMatthias Melcher <github@matthiasm.com>2024-08-23 12:43:21 +0200
commit1ae43956e2bfb933d63fc774ca8e4ed22e4108dd (patch)
tree3ced80441f3c8c1c05cbfef6d401f92dadc65810 /src/drivers/Wayland
parentf151ecb87b8ecfca4bfcd352ff7590edf425666a (diff)
Quick fix for Window Ctrl charcter handling.
This is needed to allow platform compatibel e_text and e_length, but a lot more work ist needed to unify keyboard handling
Diffstat (limited to 'src/drivers/Wayland')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
index d5850e1a3..0125bfc07 100644
--- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
@@ -678,7 +678,12 @@ int Fl_Wayland_Screen_Driver::compose(int& del) {
// letter+modifier key
int condition = (Fl::e_state & (FL_ALT | FL_META | FL_CTRL)) && ascii < 128 ;
// 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);
+ // 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);
condition |= Fl::e_keysym == FL_Tab;
//fprintf(stderr, "compose: condition=%d e_state=%x ascii=%d\n", condition, Fl::e_state, ascii);