Allow holding key on mac to send multiple keys to terminal

This commit is contained in:
Ashwin Ramaswami
2018-12-20 09:41:44 -05:00
parent 90ec90746e
commit 1104bcbccb
+2
View File
@@ -349,6 +349,8 @@ export function evaluateKeyboardEvent(
if (ev.keyCode === 65) { // cmd + a
result.type = KeyboardResultType.SELECT_ALL;
}
} else if (ev.key && !ev.ctrlKey && !ev.altKey && !ev.metaKey && ev.key !== 'Shift') {
result.key = ev.key;
}
break;
}