feat(tui): recognize keypad keys when using kitty keyboard protocol

This commit is contained in:
erw7
2021-11-24 02:05:35 +09:00
committed by zeertzjq
parent ab5929e1b0
commit 33ed85a2f6
6 changed files with 276 additions and 19 deletions

View File

@@ -1545,12 +1545,16 @@ int vgetc(void)
}
break;
case K_KUP:
case K_XUP:
c = K_UP; break;
case K_KDOWN:
case K_XDOWN:
c = K_DOWN; break;
case K_KLEFT:
case K_XLEFT:
c = K_LEFT; break;
case K_KRIGHT:
case K_XRIGHT:
c = K_RIGHT; break;
}