fix search box in menu

This commit is contained in:
Toad King 2018-01-13 20:47:15 -06:00
parent 1e212b4248
commit 0ce1fa7751

View File

@ -246,6 +246,14 @@ static EM_BOOL rwebinput_input_cb(int event_type,
strnlen(key_event->code, sizeof(key_event->code)));
translated_keycode = input_keymaps_translate_keysym_to_rk(keycode);
if (translated_keycode == RETROK_BACKSPACE)
character = '\b';
else if (translated_keycode == RETROK_RETURN ||
translated_keycode == RETROK_KP_ENTER)
character = '\n';
else if (translated_keycode == RETROK_TAB)
character = '\t';
input_keyboard_event(keydown, translated_keycode, character, mod,
RETRO_DEVICE_KEYBOARD);