Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 55207d2

Browse files
dimitardanailovjasonLaster
authored andcommitted
Escape no longer closes the modal (#5866)
1 parent c2b3627 commit 55207d2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/components/App.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ import actions from "../actions";
1212
import { ShortcutsModal } from "./ShortcutsModal";
1313
import VisibilityHandler from "./shared/VisibilityHandler";
1414

15+
import SplitBox from "devtools-splitter";
16+
import ProjectSearch from "./ProjectSearch";
17+
import PrimaryPanes from "./PrimaryPanes";
18+
import Editor from "./Editor";
19+
import SecondaryPanes from "./SecondaryPanes";
20+
import WelcomeBox from "./WelcomeBox";
21+
import EditorTabs from "./Editor/Tabs";
22+
import QuickOpenModal from "./QuickOpenModal";
23+
1524
import {
1625
getSelectedSource,
1726
getPaneCollapse,
@@ -139,17 +148,18 @@ class App extends Component<Props, State> {
139148
onEscape = (_, e) => {
140149
const {
141150
activeSearch,
142-
quickOpenEnabled,
143151
closeActiveSearch,
144-
closeQuickOpen
152+
closeQuickOpen,
153+
quickOpenEnabled
145154
} = this.props;
146155

147156
if (activeSearch) {
148157
e.preventDefault();
149158
closeActiveSearch();
150159
}
151160

152-
if (quickOpenEnabled === true) {
161+
if (quickOpenEnabled) {
162+
e.preventDefault();
153163
closeQuickOpen();
154164
}
155165
};

0 commit comments

Comments
 (0)