Преглед изворни кода

fix: prevent permission shortcuts when ctrl/meta pressed (#4631)

Co-authored-by: terakael <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
terakael пре 4 месеци
родитељ
комит
ba11455786
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

+ 1 - 0
packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

@@ -177,6 +177,7 @@ export function Session() {
     const first = permissions()[0]
     if (first) {
       const response = iife(() => {
+        if (evt.ctrl || evt.meta) return
         if (evt.name === "return") return "once"
         if (evt.name === "a") return "always"
         if (evt.name === "d") return "reject"