From 770f07c470d4ddbd031e5ce8dd464d935388cc32 Mon Sep 17 00:00:00 2001 From: fo Date: Mon, 15 Sep 2014 15:44:02 +0300 Subject: [PATCH] Fixes a mistake in the video switching shortcuts. --- keyboard_shortcut.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboard_shortcut.js b/keyboard_shortcut.js index 643bdda22..58ea7b601 100644 --- a/keyboard_shortcut.js +++ b/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(); }