* 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:
parent
af5153a036
commit
751669bbb0
winsup/cygwin
|
@ -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>
|
Sat Jul 29 13:33:49 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* path.cc (chdir): Avoid trailing dot calculation when chdir == '/'
|
* path.cc (chdir): Avoid trailing dot calculation when chdir == '/'
|
||||||
|
|
|
@ -1297,6 +1297,8 @@ static struct {
|
||||||
{VK_NUMPAD5, {"\033[G", NULL, NULL, NULL}},
|
{VK_NUMPAD5, {"\033[G", NULL, NULL, NULL}},
|
||||||
{VK_CLEAR, {"\033[G", NULL, NULL, NULL}},
|
{VK_CLEAR, {"\033[G", NULL, NULL, NULL}},
|
||||||
{'6', {NULL, NULL, "\036", NULL}},
|
{'6', {NULL, NULL, "\036", NULL}},
|
||||||
|
/* FIXME: Should this be \033OQ? */
|
||||||
|
{VK_DIVIDE, {"/", "/", "/", "/"}},
|
||||||
{0, {"", NULL, NULL, NULL}}
|
{0, {"", NULL, NULL, NULL}}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1322,6 +1324,13 @@ get_nonascii_key (INPUT_RECORD& input_rec)
|
||||||
if (input_rec.Event.KeyEvent.wVirtualKeyCode == keytable[i].vk)
|
if (input_rec.Event.KeyEvent.wVirtualKeyCode == keytable[i].vk)
|
||||||
return keytable[i].val[modifier_index];
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue