Frontend: reduce the chance of crash

This commit is contained in:
zt515 2017-11-30 00:38:31 +08:00
parent f0122ebd1f
commit cdc1f1b3b0

View File

@ -786,6 +786,8 @@ public final class TerminalView extends View {
+ leftAltDownFromEvent + ")");
}
if (mTermSession == null) return;
final boolean controlDown = controlDownFromEvent || mClient.readControlKey();
final boolean altDown = leftAltDownFromEvent || mClient.readAltKey();