Added chat clear keybinding.

This commit is contained in:
William Boman 2014-09-19 13:18:02 +02:00
parent 2f74c2fb27
commit ab80c91054
1 changed files with 6 additions and 0 deletions

View File

@ -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")