hugosaintemarie / magic-maze

Online version of board game "Magic Maze"
https://magicmaze.herokuapp.com
MIT License
20 stars 11 forks source link

Use e.code instead of e.which to support other keyboard layouts #37

Closed rcjsuen closed 3 years ago

rcjsuen commented 3 years ago

The current implementation of the keybinding system uses the deprecated which property. This makes the UI not portable across different keyboard layouts. Using code instead will make it the keybindings consistent across different keyboard layouts.

This addresses #36.