aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 18:35:45 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 18:40:40 +1000
commit0231af4e5b38956216a058ebf1e1619ae47dfa14 (patch)
tree14c2a56368954193614f7eae2a631999504f1376
parentb7d776dee51ce10de0f996fd91789488bc659605 (diff)
downloadbusybox-w32-0231af4e5b38956216a058ebf1e1619ae47dfa14.tar.gz
busybox-w32-0231af4e5b38956216a058ebf1e1619ae47dfa14.tar.bz2
busybox-w32-0231af4e5b38956216a058ebf1e1619ae47dfa14.zip
win32: read_key: add Page Up/Down and Insert
-rw-r--r--win32/termios.c3
1 files changed, 3 insertions, 0 deletions
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)
33 DWORD state = record.Event.KeyEvent.dwControlKeyState; 33 DWORD state = record.Event.KeyEvent.dwControlKeyState;
34 switch (record.Event.KeyEvent.wVirtualKeyCode) { 34 switch (record.Event.KeyEvent.wVirtualKeyCode) {
35 case VK_DELETE: return KEYCODE_DELETE; 35 case VK_DELETE: return KEYCODE_DELETE;
36 case VK_INSERT: return KEYCODE_INSERT;
36 case VK_UP: return KEYCODE_UP; 37 case VK_UP: return KEYCODE_UP;
37 case VK_DOWN: return KEYCODE_DOWN; 38 case VK_DOWN: return KEYCODE_DOWN;
38 case VK_RIGHT: 39 case VK_RIGHT:
@@ -45,6 +46,8 @@ int64_t FAST_FUNC read_key(int fd, char *buf, int timeout UNUSED_PARAM)
45 return KEYCODE_LEFT; 46 return KEYCODE_LEFT;
46 case VK_HOME: return KEYCODE_HOME; 47 case VK_HOME: return KEYCODE_HOME;
47 case VK_END: return KEYCODE_END; 48 case VK_END: return KEYCODE_END;
49 case VK_PRIOR: return KEYCODE_PAGEUP;
50 case VK_NEXT: return KEYCODE_PAGEDOWN;
48 case VK_CAPITAL: 51 case VK_CAPITAL:
49 case VK_SHIFT: 52 case VK_SHIFT:
50 case VK_CONTROL: 53 case VK_CONTROL: