From 9852d5ba79c62087b633e8d6aeb4078209ed5215 Mon Sep 17 00:00:00 2001 From: Phillmont Muktar <51525686+purfectliterature@users.noreply.github.com> Date: Wed, 12 Apr 2023 21:20:18 +0800 Subject: [PATCH] feat(editor): add hotkey snippet for run button --- src/components/Editor.tsx | 2 ++ src/components/Hotkey.tsx | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx index bce9edd..51a3c08 100644 --- a/src/components/Editor.tsx +++ b/src/components/Editor.tsx @@ -7,6 +7,7 @@ import useFile from '../hooks/useFile'; import useFilesMutations from '../hooks/useFilesMutations'; import Button from './Button'; +import K from './Hotkey'; interface EditorProps { onRunCode?: (code: string) => void; @@ -72,6 +73,7 @@ const CoreEditor = (props: CoreEditorProps): JSX.Element => {