diff --git a/client/index.html b/client/index.html index 44b8efed..ffee1b3a 100644 --- a/client/index.html +++ b/client/index.html @@ -403,15 +403,6 @@ -
-
- Ctrl + Shift + L -
-
-

Clear the current screen

-
-
-
Ctrl + K @@ -479,15 +470,6 @@
-
-
- + + L -
-
-

Clear the current screen

-
-
-
+ K @@ -583,15 +565,6 @@
-
-
- /clear -
-
-

Clear the current screen.

-
-
-
/collapse diff --git a/client/js/keybinds.js b/client/js/keybinds.js index 961961c4..c98a73de 100644 --- a/client/js/keybinds.js +++ b/client/js/keybinds.js @@ -2,7 +2,6 @@ const $ = require("jquery"); const Mousetrap = require("mousetrap"); -const utils = require("./utils"); const input = $("#input"); const sidebar = $("#sidebar"); const windows = $("#windows"); @@ -61,16 +60,6 @@ Mousetrap.bind([ channels.eq(target).click(); }); -Mousetrap.bind([ - "command+shift+l", - "ctrl+shift+l" -], function(e) { - if (e.target === input[0]) { - utils.clear(); - e.preventDefault(); - } -}); - Mousetrap.bind([ "escape" ], function() { diff --git a/client/js/lounge.js b/client/js/lounge.js index 4fececa3..d32ca2db 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -180,11 +180,6 @@ $(function() { input.val(""); resetInputHeight(input.get(0)); - if (text.indexOf("/clear") === 0) { - utils.clear(); - return; - } - if (text.indexOf("/collapse") === 0) { $(".chan.active .toggle-preview.opened").click(); return; diff --git a/client/js/utils.js b/client/js/utils.js index 46a8dccb..086a796e 100644 --- a/client/js/utils.js +++ b/client/js/utils.js @@ -1,11 +1,9 @@ "use strict"; const $ = require("jquery"); -const chat = $("#chat"); const input = $("#input"); module.exports = { - clear, confirmExit, forceFocus, move, @@ -26,12 +24,6 @@ function forceFocus() { input.trigger("click").focus(); } -function clear() { - chat.find(".active") - .find(".show-more").addClass("show").end() - .find(".messages .msg, .date-marker-container").remove(); -} - function toggleNickEditor(toggle) { $("#nick").toggleClass("editable", toggle); $("#nick-value").attr("contenteditable", toggle);