theodore-norvell / PLAAY

Senior Design Project PLAAY (Programming Language for Adults And Youth)
2 stars 0 forks source link

Use keypress events. #79

Closed theodore-norvell closed 5 years ago

theodore-norvell commented 7 years ago

Rather than keydown events, it's better to to use keypress events for character input (e.g. letters, digits, symbols) but not things like tab, arrows, ctrl+c, ctrl+v etc.

Also, I'd suggest converting keypress and keydown events to strings and then looking up the handlers in a table.

theodore-norvell commented 5 years ago

It turns out the keydown events are better than keypress events. But this is now table driven in the editor.