mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
client/js/shout.js: prevent default action, don't overshadow native keyboard shortcut
Closes #453.
This commit is contained in:
parent
956807b325
commit
c66a3917cb
1 changed files with 1 additions and 1 deletions
|
@ -723,11 +723,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 a new issue