浏览代码

Merge pull request #131 from fouksf/keyboard-shortcuts

Fixes a mistake in the video switching shortcuts.
j8
hristoterezov 11 年前
父节点
当前提交
ca8d978107
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      keyboard_shortcut.js

+ 1
- 1
keyboard_shortcut.js 查看文件

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

正在加载...
取消
保存