Skip to content

Fix numerical key bindings on different keyboard layouts

Martin Rocek requested to merge silencesys/isleward:fix-numerical-keys into master

This fix should ensure that the spell book will always work for players playing with different keyboard layouts. That is because instead of relying on key.keyCode or key.which which could contain different values it checks for key.code which in the case of the numerical keys always equals to value Digit1-0.

It does not include eb789e15 which is part of different PR and was part of previous PR fixing this due my mistake. Sorry for confusion! 🙈

Merge request reports