Browse Source

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 3 months ago
parent
commit
ba11455786
1 changed files with 1 additions and 0 deletions
  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]
     const first = permissions()[0]
     if (first) {
     if (first) {
       const response = iife(() => {
       const response = iife(() => {
+        if (evt.ctrl || evt.meta) return
         if (evt.name === "return") return "once"
         if (evt.name === "return") return "once"
         if (evt.name === "a") return "always"
         if (evt.name === "a") return "always"
         if (evt.name === "d") return "reject"
         if (evt.name === "d") return "reject"