diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-01-06 09:22:40 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-01-06 09:22:40 +0100 |
| commit | a893cc3f5ecc2a8f1d1579295a0a82359b28cadc (patch) | |
| tree | a75751561665250c8984401e00aea4c33a5cbf5c /src | |
| parent | bc28433f2e50c1a3381b0b7b356a65cc0129eacb (diff) | |
Wayland: fix processing of '.' keypad key (#881)
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 74b60c3d6..6b8005c3c 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -720,12 +720,12 @@ fprintf(stderr, "key %s: sym: %-12s(%d) code:%u fl_win=%p, ", action, buf, sym, xkb_state_key_get_utf8(seat->xkb_state, keycode, buf, sizeof(buf)); //fprintf(stderr, "utf8: '%s' e_length=%d [%d]\n", buf, (int)strlen(buf), *buf); Fl::e_keysym = Fl::e_original_keysym = for_key_vector; - if (!(Fl::e_state & FL_NUM_LOCK) && sym >= XKB_KEY_KP_Home && sym <= XKB_KEY_KP_Insert) { + if (!(Fl::e_state & FL_NUM_LOCK) && sym >= XKB_KEY_KP_Home && sym <= XKB_KEY_KP_Delete) { // process keypad number keys when NumLock is off - static const int table[10] = {FL_Home /* 7 */, FL_Left /* 4 */, FL_Up /* 8 */, + static const int table[11] = {FL_Home /* 7 */, FL_Left /* 4 */, FL_Up /* 8 */, FL_Right /* 6 */, FL_Down /* 2 */, FL_Page_Up /* 9 */, FL_Page_Down /* 3 */, FL_End /* 1 */, 0xff0b /* 5 */, - FL_Insert /* 0 */}; + FL_Insert /* 0 */, FL_Delete /* ./, */}; Fl::e_keysym = table[sym - XKB_KEY_KP_Home]; } if (state == WL_KEYBOARD_KEY_STATE_PRESSED) { |
