Merge pull request #3195 from pterodactyl/fix/console-copy

ui(server): fix keybinds not working in console
This commit is contained in:
Dane Everitt 2021-03-18 08:22:09 -07:00 committed by GitHub
commit 942136cb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;