1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Let BSD users use DEL on the console

This commit is contained in:
witekfl 2006-02-15 23:25:54 +01:00 committed by
parent 3ce3f01f30
commit fae675316b

View File

@ -770,12 +770,19 @@ set_kbd_event(struct term_event *ev, int key, int modifier)
case ASCII_TAB:
key = KBD_TAB;
break;
#if defined(HAVE_SYS_CONSIO_H) || defined(HAVE_MACHINE_CONSOLE_H) /* BSD */
case ASCII_BS:
key = KBD_BS;
break;
case ASCII_DEL:
key = KBD_DEL;
break;
#else
case ASCII_BS:
case ASCII_DEL:
key = KBD_BS;
break;
#endif
case ASCII_LF:
case ASCII_CR:
key = KBD_ENTER;