Keyboard case equality

This commit is contained in:
Mo Bitar
2019-05-12 15:54:02 -05:00
parent 9a0077a69a
commit 952e5bdb41
4 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
angular.module('app')
.constant('appVersion', '3.0.8')
.constant('appVersion', '3.0.9')
;

View File

@@ -63,7 +63,9 @@ class KeyboardManager {
return true;
}
return key == event.key;
// In the browser, shift + f results in key 'f', but in Electron, shift + f results in 'F'
// In our case we don't differentiate between the two.
return key.toLowerCase() == event.key.toLowerCase();
}
notifyObserver(event, keyEventType) {