From ab80c910541a994d008333b7b109c558dae34733 Mon Sep 17 00:00:00 2001 From: William Boman Date: Fri, 19 Sep 2014 13:18:02 +0200 Subject: [PATCH] Added chat clear keybinding. --- client/js/shout.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/js/shout.js b/client/js/shout.js index 6b13f280..8dc8eb37 100644 --- a/client/js/shout.js +++ b/client/js/shout.js @@ -567,6 +567,12 @@ $(function() { } }); + Mousetrap.bind([ + "command+k" + ], function (e, keys) { + chat.find(".active .chat .messages").empty(); + }); + function complete(word) { var words = commands.slice(); var users = chat.find(".active")