Always passing all keyboard events to OS

This commit is contained in:
Dustin Swan 2026-02-09 20:48:18 -07:00
parent 0a60d472ea
commit 244126ee9e
No known key found for this signature in database
GPG key ID: 30D46587E2100467
4 changed files with 8 additions and 10 deletions

View file

@ -217,11 +217,13 @@ export function runAppCompiled(app: App, canvas: HTMLCanvasElement, rt: any) {
}
};
// always send to OS first
handleEvent(event);
if (focusedComponentKey) {
handleComponentEvent(focusedComponentKey, event);
} else {
handleEvent(event);
}
e.preventDefault();
});