Browse Source

Fixes a mistake in the video switching shortcuts.

j8
fo 11 years ago
parent
commit
770f07c470
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      keyboard_shortcut.js

+ 1
- 1
keyboard_shortcut.js View File

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

Loading…
Cancel
Save