summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGhassen Rjab <rjab.ghassen@gmail.com>2017-06-16 20:55:15 +0300
committerGhassen Rjab <rjab.ghassen@gmail.com>2017-06-16 20:55:15 +0300
commit9b5c283892eaaaec0fc435dc3c165b2d11aab9fd (patch)
treee161ce7c820ae554cfdc774e5299d56183fe9289
parent58b0be82113d51b7c40f54b01de65a6d8f727d74 (diff)
downloadwekan-9b5c283892eaaaec0fc435dc3c165b2d11aab9fd.tar.gz
wekan-9b5c283892eaaaec0fc435dc3c165b2d11aab9fd.tar.bz2
wekan-9b5c283892eaaaec0fc435dc3c165b2d11aab9fd.zip
Fix "W" shortcut binding
-rwxr-xr-xclient/lib/keyboard.js6
1 files changed, 5 insertions, 1 deletions
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', () => {