From 999e419636caf37b8b46e4ffdbc5c4aee0ef1081 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 21 Apr 2017 21:00:57 +0300 Subject: [PATCH] Remove cycle nicks button Reverts #708. Fixes #869. Fixes #1023. --- client/css/style.css | 11 +---------- client/index.html | 3 --- client/js/lounge.js | 6 ------ 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index d74baf61..c34216e7 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -169,7 +169,6 @@ kbd { #footer .icon, #chat .count:before, #settings #play:before, -#form #cycle-nicks:before, #form #submit:before, #chat .invite .from:before, #chat .join .from:before, @@ -216,8 +215,6 @@ kbd { #footer .help:before { content: "\f059"; /* http://fontawesome.io/icon/question/ */ } #footer .sign-out:before { content: "\f011"; /* http://fontawesome.io/icon/power-off/ */ } -#form #cycle-nicks:before { content: "\f007"; /* http://fontawesome.io/icon/user/ */ } - #form #submit:before { content: "\f1d8"; /* http://fontawesome.io/icon/paper-plane/ */ } #chat .invite .from:before { @@ -1451,22 +1448,16 @@ kbd { align-self: center; } -#form #cycle-nicks, #form #submit { color: #9ca5b4; font-size: 14px; height: 32px; transition: opacity .2s; - width: 24px; + width: 32px; -webkit-flex: 0 0 auto; flex: 0 0 auto; } -#form #submit { - margin-right: 4px; -} - -#form #cycle-nicks:hover, #form #submit:hover { opacity: .6; } diff --git a/client/index.html b/client/index.html index 83ac96ad..f3073fa3 100644 --- a/client/index.html +++ b/client/index.html @@ -70,9 +70,6 @@ --> - - - diff --git a/client/js/lounge.js b/client/js/lounge.js index 0e65b5d3..6b664e56 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -870,12 +870,6 @@ $(function() { input.trigger("click").focus(); }; - // Cycle through nicks for the current word, just like hitting "Tab" - $("#cycle-nicks").on("click", function() { - input.triggerHandler($.Event("keydown.tabcomplete", {which: 9})); - forceFocus(); - }); - $("#form").on("submit", function(e) { e.preventDefault(); forceFocus();