Always passing all keyboard events to OS
This commit is contained in:
parent
0a60d472ea
commit
244126ee9e
4 changed files with 8 additions and 10 deletions
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue