aboutsummaryrefslogtreecommitdiff
path: root/src/locale.c
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2017-08-07 20:31:51 +0200
committerkoekeishiya <aasvi93@hotmail.com>2017-08-07 20:31:51 +0200
commita815e3a66a456630baf957b1b193d5e9714dfc48 (patch)
treea945b9460f8ce3fedb08e809c7b61561dc0dbf12 /src/locale.c
parenta64090a2c6286cc4c18da968deb9482d4687299c (diff)
downloadskhd-a815e3a66a456630baf957b1b193d5e9714dfc48.tar.gz
skhd-a815e3a66a456630baf957b1b193d5e9714dfc48.zip
add more key-literals
Diffstat (limited to 'src/locale.c')
-rw-r--r--src/locale.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/locale.c b/src/locale.c
index 5b262c7..e2cc86b 100644
--- a/src/locale.c
+++ b/src/locale.c
@@ -111,6 +111,28 @@ uint32_t keycode_from_literal(char *key, unsigned length)
return kVK_DownArrow;
} else if(same_string(key, length, "f1")) {
return kVK_F1;
+ } else if(same_string(key, length, "f2")) {
+ return kVK_F2;
+ } else if(same_string(key, length, "f3")) {
+ return kVK_F3;
+ } else if(same_string(key, length, "f4")) {
+ return kVK_F4;
+ } else if(same_string(key, length, "f5")) {
+ return kVK_F5;
+ } else if(same_string(key, length, "f6")) {
+ return kVK_F6;
+ } else if(same_string(key, length, "f7")) {
+ return kVK_F7;
+ } else if(same_string(key, length, "f8")) {
+ return kVK_F8;
+ } else if(same_string(key, length, "f9")) {
+ return kVK_F9;
+ } else if(same_string(key, length, "f10")) {
+ return kVK_F10;
+ } else if(same_string(key, length, "f11")) {
+ return kVK_F11;
+ } else if(same_string(key, length, "f12")) {
+ return kVK_F12;
} else {
return 0;
}