summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-06-17 17:43:25 +0300
committerLauri Ojansivu <x@xet7.org>2017-06-17 17:43:25 +0300
commit19ddf4285950e173c1f3752af6d03eeadb51f0c1 (patch)
treef688d5f1f35f4b6e16d3784e73a27e3fa018f24e /client
parent83d14b910cefe8134a056984e16315db86860b41 (diff)
parent9b5c283892eaaaec0fc435dc3c165b2d11aab9fd (diff)
downloadwekan-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-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', () => {