From 69c576b1d99133e99942d64968b77eb12dc8bb6b Mon Sep 17 00:00:00 2001 From: fo Date: Mon, 15 Sep 2014 14:21:18 +0300 Subject: [PATCH] Makes the remote video shortcut 0. --- index.html | 4 ++-- keyboard_shortcut.js | 4 ++-- videolayout.js | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 5ee798eee..cac6d5cee 100644 --- a/index.html +++ b/index.html @@ -44,7 +44,7 @@ - + @@ -52,7 +52,7 @@ - + diff --git a/keyboard_shortcut.js b/keyboard_shortcut.js index cffc3fc9e..643bdda22 100644 --- a/keyboard_shortcut.js +++ b/keyboard_shortcut.js @@ -36,9 +36,9 @@ var KeyboardShortcut = (function(my) { var keycode = e.which; if (typeof shortcuts[keycode] === "object") { shortcuts[keycode].function(); - } else if (keycode >= "1".charCodeAt(0) && keycode <= "9".charCodeAt(0)) { + } else if (keycode >= "0".charCodeAt(0) && keycode <= "9".charCodeAt(0)) { var remoteVideos = $(".videocontainer:not(#mixedstream)"), - videoWanted = keycode - "0".charCodeAt(0); + videoWanted = (keycode - "0".charCodeAt(0) + 1) % 10; if (remoteVideos.length > videoWanted) { remoteVideos[videoWanted].click(); } diff --git a/videolayout.js b/videolayout.js index 63a57a15e..b2c0c9b3c 100644 --- a/videolayout.js +++ b/videolayout.js @@ -546,6 +546,7 @@ var VideoLayout = (function (my) { var editableText = document.createElement('input'); editableText.className = 'displayname'; + editableText.type = 'text'; editableText.id = 'editDisplayName'; if (displayName && displayName.length) {