Skip to content

Commit

Permalink
Forward Shift to the device
Browse files Browse the repository at this point in the history
This allows to select text with Shift + arrow keys.

Fixes #942 <#942>.
  • Loading branch information
rom1v committed May 28, 2020
1 parent 3bdc459 commit ad78ca9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/event_converter.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ convert_keycode(SDL_Keycode from, enum android_keycode *to, uint16_t mod,
MAP(SDLK_DOWN, AKEYCODE_DPAD_DOWN);
MAP(SDLK_UP, AKEYCODE_DPAD_UP);
MAP(SDLK_RCTRL, AKEYCODE_CTRL_RIGHT);
MAP(SDLK_LSHIFT, AKEYCODE_SHIFT_LEFT);
MAP(SDLK_RSHIFT, AKEYCODE_SHIFT_RIGHT);
}

if (!(mod & (KMOD_NUM | KMOD_SHIFT))) {
Expand Down

0 comments on commit ad78ca9

Please sign in to comment.