Return correct key code for delete/backspace on android.

Also increased minimum Android API version to 14.
This commit is contained in:
Maximilian Wagenbach 2018-01-29 22:35:04 +01:00 committed by Lukas Dürrenberger
parent 66369645b5
commit 186294607f
4 changed files with 7 additions and 6 deletions

View file

@ -620,7 +620,8 @@ Keyboard::Key WindowImplAndroid::androidKeyToSF(int32_t key)
case AKEYCODE_EXPLORER:
case AKEYCODE_ENVELOPE: return Keyboard::Unknown;
case AKEYCODE_ENTER: return Keyboard::Return;
case AKEYCODE_DEL: return Keyboard::Delete;
case AKEYCODE_DEL: return Keyboard::BackSpace;
case AKEYCODE_FORWARD_DEL: return Keyboard::Delete;
case AKEYCODE_GRAVE: return Keyboard::Tilde;
case AKEYCODE_MINUS: return Keyboard::Subtract;
case AKEYCODE_EQUALS: return Keyboard::Equal;