diff options
author | Ghassen Rjab <rjab.ghassen@gmail.com> | 2017-06-16 20:55:15 +0300 |
---|---|---|
committer | Ghassen Rjab <rjab.ghassen@gmail.com> | 2017-06-16 20:55:15 +0300 |
commit | 9b5c283892eaaaec0fc435dc3c165b2d11aab9fd (patch) | |
tree | e161ce7c820ae554cfdc774e5299d56183fe9289 | |
parent | 58b0be82113d51b7c40f54b01de65a6d8f727d74 (diff) | |
download | wekan-9b5c283892eaaaec0fc435dc3c165b2d11aab9fd.tar.gz wekan-9b5c283892eaaaec0fc435dc3c165b2d11aab9fd.tar.bz2 wekan-9b5c283892eaaaec0fc435dc3c165b2d11aab9fd.zip |
Fix "W" shortcut binding
-rwxr-xr-x | client/lib/keyboard.js | 6 |
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', () => { |