mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 02:40:14 +01:00
Always close sidebar on escape button
This commit is contained in:
parent
c632bc4555
commit
7963118032
1 changed files with 1 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ EscapeActions = {
|
||||||
// the shortcut sould work on textarea and inputs as well.
|
// the shortcut sould work on textarea and inputs as well.
|
||||||
Mousetrap.bindGlobal('esc', () => {
|
Mousetrap.bindGlobal('esc', () => {
|
||||||
EscapeActions.executeLowest();
|
EscapeActions.executeLowest();
|
||||||
|
Sidebar.hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
// 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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue