fix: app_exit keybind ignored when using <leader> (including default <leader>q)
parent
40e4cd27a1
commit
144ebbcb34
|
|
@ -301,6 +301,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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue