diff options
| author | sestinj <sestinj@gmail.com> | 2023-07-15 15:10:48 -0700 | 
|---|---|---|
| committer | sestinj <sestinj@gmail.com> | 2023-07-15 15:10:48 -0700 | 
| commit | 152e3ae0d5455e621bd37cf7962478e9fa03f5eb (patch) | |
| tree | 455c1fffa360aed894d8f745f810af247ddfdf6a /extension/react-app/src/pages | |
| parent | abe77c56abd7aea66fa85bd1257f76dc2d435a15 (diff) | |
| parent | 48e5c8001e897eb37493357087410ee8f98217fa (diff) | |
| download | sncontinue-152e3ae0d5455e621bd37cf7962478e9fa03f5eb.tar.gz sncontinue-152e3ae0d5455e621bd37cf7962478e9fa03f5eb.tar.bz2 sncontinue-152e3ae0d5455e621bd37cf7962478e9fa03f5eb.zip | |
Merge remote origin main
Diffstat (limited to 'extension/react-app/src/pages')
| -rw-r--r-- | extension/react-app/src/pages/gui.tsx | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/extension/react-app/src/pages/gui.tsx b/extension/react-app/src/pages/gui.tsx index 57cebac3..cb0404ab 100644 --- a/extension/react-app/src/pages/gui.tsx +++ b/extension/react-app/src/pages/gui.tsx @@ -137,12 +137,12 @@ function GUI(props: GUIProps) {    useEffect(() => {      const listener = (e: any) => {        // Cmd + i to toggle fast model -      if (e.key === "i" && e.metaKey && e.shiftKey) { +      if (e.key === "i" && isMetaEquivalentKeyPressed(e) && e.shiftKey) {          setUsingFastModel((prev) => !prev);          // Cmd + backspace to stop currently running step        } else if (          e.key === "Backspace" && -        e.metaKey && +        isMetaEquivalentKeyPressed(e) &&          typeof history?.current_index !== "undefined" &&          history.timeline[history.current_index]?.active        ) { @@ -220,7 +220,7 @@ function GUI(props: GUIProps) {      if (mainTextInputRef.current) {        let input = (mainTextInputRef.current as any).inputValue;        // cmd+enter to /edit -      if (event?.metaKey) { +      if (isMetaEquivalentKeyPressed(event)) {          input = `/edit ${input}`;        }        (mainTextInputRef.current as any).setInputValue(""); | 
