We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7093ab commit a64f604Copy full SHA for a64f604
1 file changed
packages/opencode/src/cli/cmd/tui/ui/dialog.tsx
@@ -70,7 +70,7 @@ function init() {
70
useKeyboard((evt) => {
71
if (store.stack.length === 0) return
72
if (evt.defaultPrevented) return
73
- if ((evt.name === "escape" || (evt.ctrl && evt.name === "c")) && renderer.getSelection()) return
+ if ((evt.name === "escape" || (evt.ctrl && evt.name === "c")) && renderer.getSelection()?.getSelectedText()) return
74
if (evt.name === "escape" || (evt.ctrl && evt.name === "c")) {
75
const current = store.stack.at(-1)!
76
current.onClose?.()
0 commit comments