Remove cycle nicks button

Reverts #708.
Fixes #869.
Fixes #1023.
This commit is contained in:
Pavel Djundik 2017-04-21 21:00:57 +03:00
parent 6c0cf7cfcc
commit 999e419636
3 changed files with 1 additions and 19 deletions

View File

@ -169,7 +169,6 @@ kbd {
#footer .icon, #footer .icon,
#chat .count:before, #chat .count:before,
#settings #play:before, #settings #play:before,
#form #cycle-nicks:before,
#form #submit:before, #form #submit:before,
#chat .invite .from:before, #chat .invite .from:before,
#chat .join .from:before, #chat .join .from:before,
@ -216,8 +215,6 @@ kbd {
#footer .help:before { content: "\f059"; /* http://fontawesome.io/icon/question/ */ } #footer .help:before { content: "\f059"; /* http://fontawesome.io/icon/question/ */ }
#footer .sign-out:before { content: "\f011"; /* http://fontawesome.io/icon/power-off/ */ } #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/ */ } #form #submit:before { content: "\f1d8"; /* http://fontawesome.io/icon/paper-plane/ */ }
#chat .invite .from:before { #chat .invite .from:before {
@ -1451,22 +1448,16 @@ kbd {
align-self: center; align-self: center;
} }
#form #cycle-nicks,
#form #submit { #form #submit {
color: #9ca5b4; color: #9ca5b4;
font-size: 14px; font-size: 14px;
height: 32px; height: 32px;
transition: opacity .2s; transition: opacity .2s;
width: 24px; width: 32px;
-webkit-flex: 0 0 auto; -webkit-flex: 0 0 auto;
flex: 0 0 auto; flex: 0 0 auto;
} }
#form #submit {
margin-right: 4px;
}
#form #cycle-nicks:hover,
#form #submit:hover { #form #submit:hover {
opacity: .6; opacity: .6;
} }

View File

@ -70,9 +70,6 @@
--><span id="save-nick-tooltip" class="tooltipped tooltipped-e" aria-label="Save"><button id="submit-nick" type="button" aria-label="Save"></button></span> --><span id="save-nick-tooltip" class="tooltipped tooltipped-e" aria-label="Save"><button id="submit-nick" type="button" aria-label="Save"></button></span>
</span> </span>
<textarea id="input" class="mousetrap"></textarea> <textarea id="input" class="mousetrap"></textarea>
<span id="cycle-nicks-tooltip" class="tooltipped tooltipped-w tooltipped-no-touch" aria-label="Cycle through nicks">
<button id="cycle-nicks" type="button" aria-label="Cycle through nicks"></button>
</span>
<span id="submit-tooltip" class="tooltipped tooltipped-w tooltipped-no-touch" aria-label="Send message"> <span id="submit-tooltip" class="tooltipped tooltipped-w tooltipped-no-touch" aria-label="Send message">
<button id="submit" type="submit" aria-label="Send message"></button> <button id="submit" type="submit" aria-label="Send message"></button>
</span> </span>

View File

@ -870,12 +870,6 @@ $(function() {
input.trigger("click").focus(); 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) { $("#form").on("submit", function(e) {
e.preventDefault(); e.preventDefault();
forceFocus(); forceFocus();