Fixed Ctrrl/Alt key presses

This commit is contained in:
M66B 2021-06-23 20:21:15 +02:00
parent 9b3c11f052
commit 3b70a3788f
2 changed files with 6 additions and 0 deletions

View File

@ -3362,6 +3362,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (message == null)
return false;
if (event.isCtrlPressed() || event.isAltPressed())
return false;
switch (event.getKeyCode()) {
case KeyEvent.KEYCODE_ENTER:
case KeyEvent.KEYCODE_DPAD_CENTER:

View File

@ -5769,6 +5769,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
return false;
if (event.isCtrlPressed() || event.isAltPressed())
return false;
boolean up = (event.getAction() == ACTION_UP);
boolean down = (event.getAction() == ACTION_DOWN);