mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-03 15:41:07 +01:00
Stop selection mode on enter
This commit is contained in:
parent
3b4ece6bd8
commit
937eb350b2
1 changed files with 2 additions and 0 deletions
|
|
@ -296,6 +296,7 @@ public final class TerminalView extends View {
|
||||||
}
|
}
|
||||||
|
|
||||||
void sendTextToTerminal(CharSequence text) {
|
void sendTextToTerminal(CharSequence text) {
|
||||||
|
stopTextSelectionMode();
|
||||||
final int textLengthInChars = text.length();
|
final int textLengthInChars = text.length();
|
||||||
for (int i = 0; i < textLengthInChars; i++) {
|
for (int i = 0; i < textLengthInChars; i++) {
|
||||||
char firstChar = text.charAt(i);
|
char firstChar = text.charAt(i);
|
||||||
|
|
@ -542,6 +543,7 @@ public final class TerminalView extends View {
|
||||||
if (LOG_KEY_EVENTS)
|
if (LOG_KEY_EVENTS)
|
||||||
Log.i(EmulatorDebug.LOG_TAG, "onKeyDown(keyCode=" + keyCode + ", isSystem()=" + event.isSystem() + ", event=" + event + ")");
|
Log.i(EmulatorDebug.LOG_TAG, "onKeyDown(keyCode=" + keyCode + ", isSystem()=" + event.isSystem() + ", event=" + event + ")");
|
||||||
if (mEmulator == null) return true;
|
if (mEmulator == null) return true;
|
||||||
|
stopTextSelectionMode();
|
||||||
|
|
||||||
if (mClient.onKeyDown(keyCode, event, mTermSession)) {
|
if (mClient.onKeyDown(keyCode, event, mTermSession)) {
|
||||||
invalidate();
|
invalidate();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue