diff options
Diffstat (limited to 'src/window')
-rw-r--r-- | src/window/key.c | 4 | ||||
-rw-r--r-- | src/window/window.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/window/key.c b/src/window/key.c index b68270a..ffef2b4 100644 --- a/src/window/key.c +++ b/src/window/key.c @@ -127,6 +127,8 @@ const char* mgl_key_to_string(mgl_key key) { case MGL_KEY_F20: return "F20"; case MGL_KEY_F21: return "F21"; case MGL_KEY_F22: return "F22"; + case MGL_KEY_F23: return "F23"; + case MGL_KEY_F24: return "F24"; case __MGL_NUM_KEYS__: return ""; } return ""; @@ -206,6 +208,8 @@ uint64_t mgl_key_to_x11_keysym(mgl_key key) { case MGL_KEY_F20: return XK_F20; case MGL_KEY_F21: return XK_F21; case MGL_KEY_F22: return XK_F22; + case MGL_KEY_F23: return XK_F23; + case MGL_KEY_F24: return XK_F24; default: return XK_VoidSymbol; } return XK_VoidSymbol; diff --git a/src/window/window.c b/src/window/window.c index e7f737d..55efffd 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -1170,6 +1170,8 @@ static mgl_key x11_keysym_to_mgl_key(KeySym key_sym) { case XK_F20: return MGL_KEY_F20; case XK_F21: return MGL_KEY_F21; case XK_F22: return MGL_KEY_F22; + case XK_F23: return MGL_KEY_F23; + case XK_F24: return MGL_KEY_F24; } return MGL_KEY_UNKNOWN; } |