Skip to content

Commit 942136c

Browse files
authored
Merge pull request pterodactyl#3195 from pterodactyl/fix/console-copy
ui(server): fix keybinds not working in console
2 parents 1b3d1a4 + 9057a4f commit 942136c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/scripts/components/server/Console.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ export default () => {
145145

146146
// Add support for capturing keys
147147
terminal.attachCustomKeyEventHandler((e: KeyboardEvent) => {
148-
if (e.metaKey && e.key === 'c') {
148+
if ((e.ctrlKey || e.metaKey) && e.key === 'c') {
149149
document.execCommand('copy');
150150
return false;
151-
} else if (e.metaKey && e.key === 'f') {
151+
} else if ((e.ctrlKey || e.metaKey) && e.key === 'f') {
152152
e.preventDefault();
153153
searchBar.show();
154154
return false;

0 commit comments

Comments
 (0)