Merge pull request #1895 from pp3345/right-alt

Do not treat Right Alt key as a modifier for key combos
This commit is contained in:
Daniel Gultsch 2016-06-05 23:19:56 +02:00
commit b88128241e
1 changed files with 1 additions and 1 deletions

View File

@ -949,7 +949,7 @@ public class ConversationActivity extends XmppActivity
upKey = KeyEvent.KEYCODE_DPAD_UP;
downKey = KeyEvent.KEYCODE_DPAD_DOWN;
}
final boolean modifier = event.isCtrlPressed() || event.isAltPressed();
final boolean modifier = event.isCtrlPressed() || (event.getMetaState() & KeyEvent.META_ALT_LEFT_ON) != 0;
if (modifier && key == KeyEvent.KEYCODE_TAB && isConversationsOverviewHideable()) {
toggleConversationsOverview();
return true;