|
|
@@ -275,7 +275,7 @@ static int slang_get_event(caca_display_t *dp, caca_event_t *ev) |
|
|
|
} |
|
|
|
|
|
|
|
/* If the key was ASCII, return it immediately */ |
|
|
|
if(intkey < 0x80) |
|
|
|
if(intkey < 0x7f) |
|
|
|
{ |
|
|
|
ev->type = CACA_EVENT_KEY_PRESS; |
|
|
|
ev->data.key.ch = intkey; |
|
|
@@ -318,6 +318,7 @@ static int slang_get_event(caca_display_t *dp, caca_event_t *ev) |
|
|
|
|
|
|
|
case SL_KEY_IC: ev->data.key.ch = CACA_KEY_INSERT; break; |
|
|
|
case SL_KEY_DELETE: ev->data.key.ch = CACA_KEY_DELETE; break; |
|
|
|
case 0x7f: |
|
|
|
case SL_KEY_BACKSPACE: ev->data.key.ch = CACA_KEY_BACKSPACE; break; |
|
|
|
case SL_KEY_HOME: ev->data.key.ch = CACA_KEY_HOME; break; |
|
|
|
case SL_KEY_END: ev->data.key.ch = CACA_KEY_END; break; |
|
|
|