Merge branch 'GhassenRjab-devel' into devel

Fix "W" shortcut binding. Thanks to GhassenRjab ! Closes #1064
This commit is contained in:
Lauri Ojansivu 2017-06-17 17:49:49 +03:00
commit b08dccf7d4
2 changed files with 7 additions and 2 deletions

View file

@ -10,7 +10,8 @@ This release adds the following new features:
and fixes the following bugs:
* [Fix IE 11 drag board to scroll](https://github.com/wekan/wekan/pull/1052);
* [Fix Export Wekan board](https://github.com/wekan/wekan/pull/1067).
* [Fix Export Wekan board](https://github.com/wekan/wekan/pull/1067);
* [Fix "W" shortcut binding](https://github.com/wekan/wekan/pull/1066).
Thanks to GitHub users BaobabCoder, GhassenRjab, nebulade and nztqa
for their contributions.

View file

@ -6,7 +6,11 @@ Mousetrap.bind('?', () => {
});
Mousetrap.bind('w', () => {
Sidebar.toggle();
if (Sidebar.isOpen() && Sidebar.getView() === 'home') {
Sidebar.toggle();
} else {
Sidebar.setView();
}
});
Mousetrap.bind('q', () => {