Ctrl-Enter to send

This commit is contained in:
M66B
2020-02-20 16:46:51 +01:00
parent 2bcf3129ce
commit 2f3381996d
6 changed files with 18 additions and 10 deletions

View File

@@ -4182,7 +4182,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
private ActivityBase.IKeyPressedListener onBackPressedListener = new ActivityBase.IKeyPressedListener() {
@Override
public boolean onKeyPressed(int keyCode) {
public boolean onKeyPressed(KeyEvent event) {
if (viewType != AdapterMessage.ViewType.THREAD)
return false;
@@ -4195,7 +4195,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (!volumenav)
return false;
switch (keyCode) {
switch (event.getKeyCode()) {
case KeyEvent.KEYCODE_VOLUME_UP:
if (next == null) {
Animation bounce = AnimationUtils.loadAnimation(getContext(), R.anim.bounce_left);