Browse Source

fix(app): don't override ctrl+a on windows

Adam 1 month ago
parent
commit
c9f907caec
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/app/src/components/prompt-input.tsx

+ 1 - 0
packages/app/src/components/prompt-input.tsx

@@ -976,6 +976,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
 
         if (ctrl) {
           if (event.code === "KeyA") {
+            if (navigator.platform.includes("Win")) return
             const pos = text.lastIndexOf("\n", cursorPosition - 1) + 1
             setCursorPosition(editorRef, pos)
             event.preventDefault()