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:
parent
6ab98c1448
commit
4cdd180ebc
3 changed files with 17 additions and 16 deletions
|
|
@ -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' }
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue