* fhandler_console.cc: Add VK_DIVIDE detection. Return virtual keycode if it

is not detected and it is less than ' '.
This commit is contained in:
Christopher Faylor 2000-07-29 19:07:15 +00:00
parent af5153a036
commit 751669bbb0
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sat Jul 29 14:32:12 2000 Christopher Faylor <cgf@cygnus.com>
* fhandler_console.cc: Add VK_DIVIDE detection. Return virtual keycode
if it is not detected and it is less than ' '.
Sat Jul 29 13:33:49 2000 Christopher Faylor <cgf@cygnus.com>
* path.cc (chdir): Avoid trailing dot calculation when chdir == '/'

View File

@ -1297,6 +1297,8 @@ static struct {
{VK_NUMPAD5, {"\033[G", NULL, NULL, NULL}},
{VK_CLEAR, {"\033[G", NULL, NULL, NULL}},
{'6', {NULL, NULL, "\036", NULL}},
/* FIXME: Should this be \033OQ? */
{VK_DIVIDE, {"/", "/", "/", "/"}},
{0, {"", NULL, NULL, NULL}}
};
@ -1322,6 +1324,13 @@ get_nonascii_key (INPUT_RECORD& input_rec)
if (input_rec.Event.KeyEvent.wVirtualKeyCode == keytable[i].vk)
return keytable[i].val[modifier_index];
if (input_rec.Event.KeyEvent.wVirtualKeyCode < ' ')
{
/* FIXME: Probably not thread-safe */
static char buf[2];
buf[0] = input_rec.Event.KeyEvent.wVirtualKeyCode;
return buf;
}
return NULL;
}