From 2e33d7a9279c83ad48bbd0977d90de387f603832 Mon Sep 17 00:00:00 2001 From: Alex Rosenfeld Date: Tue, 2 Jul 2019 16:23:17 +0000 Subject: [PATCH] Bug 1561577 - prevent default when esc is pressed on shortcutsModal r=jlast Prevent toggling open Split Console with escape is pressed to toggle shortcutsModal closed. Differential Revision: https://phabricator.services.mozilla.com/D36448 --HG-- extra : moz-landing-system : lando --- devtools/client/debugger/src/components/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/devtools/client/debugger/src/components/App.js b/devtools/client/debugger/src/components/App.js index b2b06b529dd7..c1e95e9b198a 100644 --- a/devtools/client/debugger/src/components/App.js +++ b/devtools/client/debugger/src/components/App.js @@ -166,6 +166,7 @@ class App extends Component { } if (shortcutsModalEnabled) { + e.preventDefault(); this.toggleShortcutsModal(); } };