Explorar el Código

Fix "W" shortcut binding

Ghassen Rjab hace 8 años
padre
commit
9b5c283892
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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', () => {