ui(server): fix keybinds not working in console

This commit is contained in:
Matthew Penner 2021-03-17 16:59:06 -06:00
parent 1b3d1a4540
commit 9057a4f9d8

View file

@ -145,10 +145,10 @@ export default () => {
// Add support for capturing keys
terminal.attachCustomKeyEventHandler((e: KeyboardEvent) => {
if (e.metaKey && e.key === 'c') {
if ((e.ctrlKey || e.metaKey) && e.key === 'c') {
document.execCommand('copy');
return false;
} else if (e.metaKey && e.key === 'f') {
} else if ((e.ctrlKey || e.metaKey) && e.key === 'f') {
e.preventDefault();
searchBar.show();
return false;