소스 검색

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

Fix "W" shortcut binding. Thanks to GhassenRjab ! Closes #1064
Lauri Ojansivu 8 년 전
부모
커밋
19ddf42859
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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', () => {