summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md3
-rwxr-xr-xclient/lib/keyboard.js6
2 files changed, 7 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8062cbdd..2c30db3f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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.
diff --git a/client/lib/keyboard.js b/client/lib/keyboard.js
index ff18738b..24955929 100755
--- a/client/lib/keyboard.js
+++ b/client/lib/keyboard.js
@@ -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', () => {