We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b92712e commit 42aae1dCopy full SHA for 42aae1d
resources/scripts/components/server/Console.tsx
@@ -144,23 +144,16 @@ export default () => {
144
145
// Add support for capturing keys
146
terminal.attachCustomKeyEventHandler((e: KeyboardEvent) => {
147
- // Ctrl + C (Copy)
148
- if (e.ctrlKey && e.key === 'c') {
+ if (e.metaKey && e.key === 'c') {
149
document.execCommand('copy');
150
return false;
151
- }
152
-
153
- // Ctrl + F (Find)
154
- if (e.ctrlKey && e.key === 'f') {
+ } else if (e.metaKey && e.key === 'f') {
+ e.preventDefault();
155
searchBar.show();
156
157
158
159
- // Escape
160
- if (e.key === 'Escape') {
+ } else if (e.key === 'Escape') {
161
searchBar.hidden();
162
}
163
164
return true;
165
});
166
0 commit comments