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:
commit
7e2daebd79
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user