diff options
| author | terakael <[email protected]> | 2025-11-23 14:58:10 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-22 23:58:10 -0600 |
| commit | ba1145578673e75292430dc91afaf3ac42ba11c9 (patch) | |
| tree | 75356d95f80d0876471e380a46e1f23864c510ed /packages | |
| parent | d69ba27f84bcdc2c7040a99f84f5eea791918f96 (diff) | |
| download | opencode-ba1145578673e75292430dc91afaf3ac42ba11c9.tar.gz opencode-ba1145578673e75292430dc91afaf3ac42ba11c9.zip | |
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]>
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx index 820857671..6eccef4ad 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/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" |
