pull/8151/merge
Evan Sosenko 2026-04-08 06:04:18 +00:00 committed by GitHub
commit e4fbfc6a4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -298,6 +298,13 @@ function App(props: { onSnapshot?: () => Promise<string[]> }) {
setReady(true)
})
useKeyboard((evt) => {
if (!keybind.match("app_exit", evt)) return
const prompt = promptRef.current?.current
if (prompt && prompt.input !== "") return
exit()
})
useKeyboard((evt) => {
if (!Flag.OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT) return
const sel = renderer.getSelection()