Merge pull request #481 from williamboman/fix/chat-clear-prevent-default

client/js/shout.js: prevent default action when clearing chat
This commit is contained in:
Jérémie Astori 2015-10-07 22:58:14 -04:00
commit 7e2daebd79

View File

@ -731,11 +731,11 @@ $(function() {
Mousetrap.bind([ Mousetrap.bind([
"command+k", "command+k",
"ctrl+l",
"ctrl+shift+l" "ctrl+shift+l"
], function (e) { ], function (e) {
if(e.target === input[0]) { if(e.target === input[0]) {
clear(); clear();
e.preventDefault();
} }
}); });