mirror of https://github.com/fltk/fltk
Fix for "Shift-Ctrl-C shortcut in fluid not working on newer linux OS's" (#637)
This commit is contained in:
parent
8dd3ff8e12
commit
18f2854656
|
@ -655,6 +655,7 @@ static void wl_keyboard_key(void *data, struct wl_keyboard *wl_keyboard,
|
|||
static char buf[128];
|
||||
uint32_t keycode = key + 8;
|
||||
xkb_keysym_t sym = xkb_state_key_get_one_sym(seat->xkb_state, keycode);
|
||||
if (sym >= 'A' && sym <= 'Z') sym += 32; // replace uppercase by lowercase letter
|
||||
/*xkb_keysym_get_name(sym, buf, sizeof(buf));
|
||||
const char *action = (state == WL_KEYBOARD_KEY_STATE_PRESSED ? "press" : "release");
|
||||
fprintf(stderr, "key %s: sym: %-12s(%d) code:%u fl_win=%p, ", action, buf, sym, keycode, Fl_Wayland_Screen_Driver::surface_to_window(seat->keyboard_surface));*/
|
||||
|
|
Loading…
Reference in New Issue