|
|
@ -540,7 +540,7 @@ public final class ComposeActivity |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
textEditor.setOnKeyListener((view, keyCode, event) -> this.onKeyShortcut(keyCode, event)); |
|
|
|
textEditor.setOnKeyListener((view, keyCode, event) -> this.onKeyDown(keyCode, event)); |
|
|
|
|
|
|
|
|
|
|
|
textEditor.setAdapter( |
|
|
|
textEditor.setAdapter( |
|
|
|
new ComposeAutoCompleteAdapter(this)); |
|
|
|
new ComposeAutoCompleteAdapter(this)); |
|
|
@ -1645,7 +1645,7 @@ public final class ComposeActivity |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean onKeyShortcut(int keyCode, KeyEvent event) { |
|
|
|
public boolean onKeyDown(int keyCode, KeyEvent event) { |
|
|
|
Log.d(TAG, event.toString()); |
|
|
|
Log.d(TAG, event.toString()); |
|
|
|
if (event.isCtrlPressed()) { |
|
|
|
if (event.isCtrlPressed()) { |
|
|
|
if (keyCode == KeyEvent.KEYCODE_ENTER) { |
|
|
|
if (keyCode == KeyEvent.KEYCODE_ENTER) { |
|
|
|