Skip to content

Just can't quit #233

@cbrunnkvist

Description

@cbrunnkvist

Summary

As far as I understand, an unhandled "q" at the top level should quit the runtime by default:

function isTopLevelQuitEvent(ev: ZrevEvent): boolean {
if (ev.kind === "key") {
return ev.action === "down" && isUnmodifiedLetterKey(ev.mods) && ev.key === KEY_Q;
}
if (ev.kind === "text") {
return ev.codepoint === KEY_Q || ev.codepoint === 113;
}
return false;
}

but the only way I can quit my examples is to kill/pkill -f from another terminal.

Reproduction steps

Run any example:

% cd examples/hello-counter
% npx tsx src/index.ts

Hi, my name is stuck.

(Workaround with app.keys({ "ctrl+c": () => app.stop() })?)

Environment

OS: macOS 26.3
Rezi: 56d4e70

Logs / output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions