diff options
author | Yussuf Khalil <dev@pp3345.net> | 2016-06-05 20:21:44 +0200 |
---|---|---|
committer | Yussuf Khalil <dev@pp3345.net> | 2016-06-05 20:21:44 +0200 |
commit | 92bad0fa1ec6cf5fd46ce42a82b0093681d8d6b5 (patch) | |
tree | b24ad03eddc8d4f9c4baf43ec957165062a81d5f /src | |
parent | 6639d0f23bb983cae7234d6b15f9875464c67093 (diff) |
Do not treat right alt key as a modifier for key combos
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/ConversationActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java index a9b9beb7..2717aa3d 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java @@ -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; |