* src/haiku_support.cc (BMapKey): Rename to `be_map_key'.
(be_map_key): Recognize more key codes.
* src/haiku_support.h (BMapKey, be_map_key): Adjust accordingly.
* src/haikuterm.c (haiku_read_socket): Likewise.
/* Map the keycode KC, storing the result in CODE and 1 in
NON_ASCII_P if it should be used. */
void
-BMapKey (uint32_t kc, int *non_ascii_p, unsigned *code)
+be_map_key (uint32_t kc, int *non_ascii_p, unsigned *code)
{
if (*code == 10 && kc != 0x42)
{
*code = XK_Down;
break;
case 0x64:
+ case 0x1f:
*code = XK_Insert;
break;
case 0x65:
+ case 0x34:
*code = XK_Delete;
break;
case 0x37:
+ case 0x20:
*code = XK_Home;
break;
case 0x58:
+ case 0x35:
*code = XK_End;
break;
case 0x39:
+ case 0x21:
*code = XK_Page_Up;
break;
case 0x5a:
+ case 0x36:
*code = XK_Page_Down;
break;
case 0x1:
BWindow_Flush (void *window);
extern void
- BMapKey (uint32_t kc, int *non_ascii_p, unsigned *code);
+ be_map_key (uint32_t kc, int *non_ascii_p, unsigned *code);
extern void *
BScrollBar_make_for_view (void *view, int horizontal_p,
inev.code = b->unraw_mb_char;
- BMapKey (b->kc, &non_ascii_p, &inev.code);
+ be_map_key (b->kc, &non_ascii_p, &inev.code);
if (non_ascii_p)
inev.kind = NON_ASCII_KEYSTROKE_EVENT;