Keyboard case equality
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
angular.module('app')
|
||||
|
||||
.constant('appVersion', '3.0.8')
|
||||
.constant('appVersion', '3.0.9')
|
||||
|
||||
;
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user