mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
extra keys: fix crash when clicking on "empty" (undefined) key
This commit is contained in:
committed by
Fredrik Fornwall
parent
ed8bd4b569
commit
c986a46fb9
@@ -84,7 +84,7 @@ public final class ExtraKeysView extends GridLayout {
|
|||||||
} else {
|
} else {
|
||||||
// not a control char
|
// not a control char
|
||||||
TerminalSession session = terminalView.getCurrentSession();
|
TerminalSession session = terminalView.getCurrentSession();
|
||||||
if (session != null)
|
if (session != null && keyName.length() > 0)
|
||||||
session.write(keyName);
|
session.write(keyName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user