Oops, forgot some grouping parens.
This commit is contained in:
parent
d7ad494a30
commit
d388fe9a85
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ function normalizeCommandKeys(callback, e, keyCode) {
|
|||
|
||||
exports.addCommandKeyListener = function(el, callback) {
|
||||
var addListener = exports.addListener;
|
||||
if (useragent.isOldGecko || useragent.isOpera && !("KeyboardEvent" in window)) {
|
||||
if (useragent.isOldGecko || (useragent.isOpera && !("KeyboardEvent" in window))) {
|
||||
// Old versions of Gecko aka. Firefox < 4.0 didn't repeat the keydown
|
||||
// event if the user pressed the key for a longer time. Instead, the
|
||||
// keydown event was fired once and later on only the keypress event.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue