diff options
| author | Adam <[email protected]> | 2026-02-12 14:39:02 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-02-12 14:39:02 -0600 |
| commit | e9b9a62fe4df1fcc92b9d410a1982f26418d87a1 (patch) | |
| tree | 1998ced14e8aeaadccc0420652f26b7e84e39a52 /packages/app/src/context/command.tsx | |
| parent | 81c623f26eddf9aa014510b25c4621ed39678de7 (diff) | |
| download | opencode-e9b9a62fe4df1fcc92b9d410a1982f26418d87a1.tar.gz opencode-e9b9a62fe4df1fcc92b9d410a1982f26418d87a1.zip | |
chore: cleanup
Diffstat (limited to 'packages/app/src/context/command.tsx')
| -rw-r--r-- | packages/app/src/context/command.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/app/src/context/command.tsx b/packages/app/src/context/command.tsx index b286364c6..237d71884 100644 --- a/packages/app/src/context/command.tsx +++ b/packages/app/src/context/command.tsx @@ -315,8 +315,9 @@ export const { use: useCommand, provider: CommandProvider } = createSimpleContex const sig = signatureFromEvent(event) const isPalette = palette().has(sig) const option = keymap().get(sig) + const modified = event.ctrlKey || event.metaKey || event.altKey - if (isEditableTarget(event.target) && !isPalette && !isAllowedEditableKeybind(option?.id)) return + if (isEditableTarget(event.target) && !isPalette && !isAllowedEditableKeybind(option?.id) && !modified) return if (isPalette) { event.preventDefault() |
