diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-06-17 17:43:25 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-06-17 17:43:25 +0300 |
commit | 19ddf4285950e173c1f3752af6d03eeadb51f0c1 (patch) | |
tree | f688d5f1f35f4b6e16d3784e73a27e3fa018f24e /client | |
parent | 83d14b910cefe8134a056984e16315db86860b41 (diff) | |
parent | 9b5c283892eaaaec0fc435dc3c165b2d11aab9fd (diff) | |
download | wekan-19ddf4285950e173c1f3752af6d03eeadb51f0c1.tar.gz wekan-19ddf4285950e173c1f3752af6d03eeadb51f0c1.tar.bz2 wekan-19ddf4285950e173c1f3752af6d03eeadb51f0c1.zip |
Merge https://github.com/GhassenRjab/wekan into GhassenRjab-devel
Fix "W" shortcut binding. Thanks to GhassenRjab ! Closes #1064
Diffstat (limited to 'client')
-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', () => { |