mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 06:13:45 +02:00
ui(server): fix keybinds not working in console
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user