File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/solid-repl/src/components Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ import { GridResizer } from './gridResizer';
55const dispatchKeyboardEventToParentZoomState = ( ) => `
66 document.addEventListener('keydown', (e) => {
77 if (!(e.ctrlKey || e.metaKey)) return;
8- if(!['=', '-'].includes(e.key)) return
8+ if (!['=', '-'].includes(e.key)) return;
99
1010 const options = {
1111 key: e.key,
1212 ctrlKey: e.ctrlKey,
13- metaKey: e.metaKey
14- }
15- const keyboardEvent = new KeyboardEvent('keydown', options)
16- window.parent.document.dispatchEvent(keyboardEvent)
13+ metaKey: e.metaKey,
14+ };
15+ const keyboardEvent = new KeyboardEvent('keydown', options);
16+ window.parent.document.dispatchEvent(keyboardEvent);
1717
18- e.preventDefault()
18+ e.preventDefault();
1919 });
2020` ;
2121
You can’t perform that action at this time.
0 commit comments