ref: b2c6c2793f7432490a3609187e8b9ecdcfc58a33
parent: 385048962cf6c529e35f629f22b611e4b0edadfb
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Jun 13 20:37:17 EDT 2022
wayland: add F1-F12 keys
--- a/gui-wl/wl-cb.c
+++ b/gui-wl/wl-cb.c
@@ -233,6 +233,20 @@
case XKB_KEY_Insert:
utf32 = Kins;
break;
+ case XKB_KEY_F1:
+ case XKB_KEY_F2:
+ case XKB_KEY_F3:
+ case XKB_KEY_F4:
+ case XKB_KEY_F5:
+ case XKB_KEY_F6:
+ case XKB_KEY_F7:
+ case XKB_KEY_F8:
+ case XKB_KEY_F9:
+ case XKB_KEY_F10:
+ case XKB_KEY_F11:
+ case XKB_KEY_F12:
+ utf32 = KF|(keysym - XKB_KEY_F1 + 1);
+ break;
default:
utf32 = xkb_keysym_to_utf32(keysym);
break;