esc also needs a low number

This commit is contained in:
Kovid Goyal
2021-01-12 13:42:12 +05:30
parent 1ec9a8b777
commit 7ba57ebf62
3 changed files with 4 additions and 3 deletions

View File

@@ -129,6 +129,7 @@ encode_function_key(const KeyEvent *ev, char *output) {
#define S(number, trailer) key_number = number; csi_trailer = trailer; break
switch(key_number) {
/* start special numbers (auto generated by gen-key-constants.py do not edit) */
case GLFW_FKEY_ESCAPE: S(27, 'u');
case GLFW_FKEY_ENTER: S(13, 'u');
case GLFW_FKEY_TAB: S(9, 'u');
case GLFW_FKEY_BACKSPACE: S(127, 'u');