From 0231af4e5b38956216a058ebf1e1619ae47dfa14 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Tue, 14 Sep 2010 18:35:45 +1000 Subject: win32: read_key: add Page Up/Down and Insert --- win32/termios.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/win32/termios.c b/win32/termios.c index 283e88b3a..e2dc96361 100644 --- a/win32/termios.c +++ b/win32/termios.c @@ -33,6 +33,7 @@ int64_t FAST_FUNC read_key(int fd, char *buf, int timeout UNUSED_PARAM) DWORD state = record.Event.KeyEvent.dwControlKeyState; switch (record.Event.KeyEvent.wVirtualKeyCode) { case VK_DELETE: return KEYCODE_DELETE; + case VK_INSERT: return KEYCODE_INSERT; case VK_UP: return KEYCODE_UP; case VK_DOWN: return KEYCODE_DOWN; case VK_RIGHT: @@ -45,6 +46,8 @@ int64_t FAST_FUNC read_key(int fd, char *buf, int timeout UNUSED_PARAM) return KEYCODE_LEFT; case VK_HOME: return KEYCODE_HOME; case VK_END: return KEYCODE_END; + case VK_PRIOR: return KEYCODE_PAGEUP; + case VK_NEXT: return KEYCODE_PAGEDOWN; case VK_CAPITAL: case VK_SHIFT: case VK_CONTROL: -- cgit v1.2.3-55-g6feb