Skip to content

Commit

Permalink
FS#1958
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris--S committed Oct 3, 2010
1 parent c1e6807 commit 05fea6b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/scripts/hotkeys.js
Expand Up @@ -208,7 +208,7 @@ function Hotkeys() {
/**
* @property isMac
*/
this.isMac = (navigator.userAgent.indexOf('Mac') != -1);
this.isMac = is_macos;

/**
* Apply function cb on each element of o in the namespace of s
Expand Down Expand Up @@ -272,9 +272,7 @@ function Hotkeys() {
}

t.each(t.shortcuts, function(o) {
if (t.isMac && o.ctrl != e.metaKey)
return;
else if (!t.isMac && o.ctrl != e.ctrlKey)
if (o.ctrl != e.ctrlKey)
return;

if (o.alt != e.altKey)
Expand Down

0 comments on commit 05fea6b

Please sign in to comment.