Jelajahi Sumber

Always close sidebar on escape button

Nadav Tasher 1 tahun lalu
induk
melakukan
7963118032
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      client/lib/escapeActions.js

+ 1 - 0
client/lib/escapeActions.js

@@ -123,6 +123,7 @@ EscapeActions = {
 // the shortcut sould work on textarea and inputs as well.
 Mousetrap.bindGlobal('esc', () => {
   EscapeActions.executeLowest();
+  Sidebar.hide();
 });
 
 // On a left click on the document, we try to exectute one escape action (eg,