Browse Source

Merge https://github.com/GhassenRjab/wekan into GhassenRjab-devel

Fix "W" shortcut binding. Thanks to GhassenRjab ! Closes #1064
Lauri Ojansivu 8 năm trước cách đây
mục cha
commit
19ddf42859
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      client/lib/keyboard.js

+ 5 - 1
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', () => {