浏览代码

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

Adam 2 月之前
父节点
当前提交
c9f907caec
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 (ctrl) {
           if (event.code === "KeyA") {
           if (event.code === "KeyA") {
+            if (navigator.platform.includes("Win")) return
             const pos = text.lastIndexOf("\n", cursorPosition - 1) + 1
             const pos = text.lastIndexOf("\n", cursorPosition - 1) + 1
             setCursorPosition(editorRef, pos)
             setCursorPosition(editorRef, pos)
             event.preventDefault()
             event.preventDefault()