Merge pull request #131 from fouksf/keyboard-shortcuts

Fixes a mistake in the video switching shortcuts.
pull/98/head
hristoterezov 11 years ago
commit ca8d978107
  1. 2
      keyboard_shortcut.js

@ -38,7 +38,7 @@ var KeyboardShortcut = (function(my) {
shortcuts[keycode].function();
} else if (keycode >= "0".charCodeAt(0) && keycode <= "9".charCodeAt(0)) {
var remoteVideos = $(".videocontainer:not(#mixedstream)"),
videoWanted = (keycode - "0".charCodeAt(0) + 1) % 10;
videoWanted = keycode - "0".charCodeAt(0) + 1;
if (remoteVideos.length > videoWanted) {
remoteVideos[videoWanted].click();
}

Loading…
Cancel
Save