Do not treat right alt key as a modifier for key combos

This commit is contained in:
Yussuf Khalil 2016-06-05 20:21:44 +02:00
parent 6639d0f23b
commit 92bad0fa1e
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;