Allowin thunks in eventHandlers. more progress on OS palette. adding fuzzy match to storeSearch
This commit is contained in:
parent
f378149146
commit
b8a396a734
6 changed files with 53 additions and 35 deletions
|
|
@ -142,6 +142,12 @@ export function runAppCompiled(app: App, canvas: HTMLCanvasElement, rt: any) {
|
|||
}
|
||||
|
||||
function handleEvent(event: any) {
|
||||
// Thunk
|
||||
if (typeof event === 'function') {
|
||||
handleEvent(event(null));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!event || !event._tag) return;
|
||||
|
||||
if (event._tag === 'Batch' && event._0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue