mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 13:07:17 -04:00
parent
6730478008
commit
22e854cc30
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ Mousetrap.bindGlobal('esc', function() {
|
||||||
// On a left click on the document, we try to exectute one escape action (eg,
|
// On a left click on the document, we try to exectute one escape action (eg,
|
||||||
// close the popup). We don't execute any action if the user has clicked on a
|
// close the popup). We don't execute any action if the user has clicked on a
|
||||||
// link or a button.
|
// link or a button.
|
||||||
$(document).on('click', function(evt) {
|
$(document.body).on('click', function(evt) {
|
||||||
if (evt.which === 1 &&
|
if (evt.which === 1 &&
|
||||||
$(evt.target).closest('a,button,.is-editable').length === 0) {
|
$(evt.target).closest('a,button,.is-editable').length === 0) {
|
||||||
EscapeActions.clickExecute(evt.target, 'multiselection');
|
EscapeActions.clickExecute(evt.target, 'multiselection');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue