Procházet zdrojové kódy

Merge pull request #5571 from NadavTasher/feature/always-close-sidebar-on-escape

Always close sidebar when user clicks ESC
Lauri Ojansivu před 8 měsíci
rodič
revize
c60961cbb1
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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,