Fix Syster handling of `Key_0`

Fixes #1032

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1033/head
Michael Richters 4 years ago
parent e2f710abee
commit d8be455c7a
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -169,8 +169,10 @@ __attribute__((weak)) const char keyToChar(Key key) {
switch (key.getKeyCode()) {
case Key_A.getKeyCode() ... Key_Z.getKeyCode():
return 'a' + (key.getKeyCode() - Key_A.getKeyCode());
case Key_1.getKeyCode() ... Key_0.getKeyCode():
case Key_1.getKeyCode() ... Key_9.getKeyCode():
return '1' + (key.getKeyCode() - Key_1.getKeyCode());
case Key_0.getKeyCode():
return '0';
}
return 0;

Loading…
Cancel
Save