Combine into ternary

This commit is contained in:
Daniel Imms
2020-04-10 12:53:02 -07:00
committed by GitHub
parent 3ef41f2b1d
commit ba0dc60b09
+1 -6
View File
@@ -103,12 +103,7 @@ export function evaluateKeyboardEvent(
break;
case 13:
// return/enter
if (ev.altKey) {
result.key = C0.ESC + C0.CR;
}
else {
result.key = C0.CR;
}
result.key = ev.altKey ? C0.ESC + C0.CR : C0.CR;
result.cancel = true;
break;
case 27: