Printable keys now don't include like meta-P e.g. Also really nailing down the index selection in palette

This commit is contained in:
Dustin Swan 2026-02-13 13:06:41 -07:00
parent 6ab98c1448
commit 4cdd180ebc
No known key found for this signature in database
GPG key ID: 30D46587E2100467
3 changed files with 17 additions and 16 deletions

View file

@ -236,7 +236,7 @@ export function runAppCompiled(canvas: HTMLCanvasElement, store: any) {
meta: { _tag: e.metaKey ? 'True' : 'False' },
alt: { _tag: e.altKey ? 'True' : 'False' },
shift: { _tag: e.shiftKey ? 'True' : 'False' },
printable: { _tag: e.key.length === 1 ? 'True' : 'False' }
printable: { _tag: (e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey) ? 'True' : 'False' }
}
};