-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
As far as I understand, an unhandled "q" at the top level should quit the runtime by default:
Rezi/packages/core/src/app/createApp.ts
Lines 428 to 436 in b1fa8e3
| 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working