We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5b6034 commit 2a91cdeCopy full SHA for 2a91cde
src/command-pallette/CommandPaletteProvider.tsx
@@ -37,8 +37,6 @@ export const CommandPaletteProvider = ({
37
setShowDialog(!showDialog);
38
// [on Firefox] prevent opening the browser search bar via CMD/CTRL+K
39
e.preventDefault();
40
- } else if (key === 'Escape') {
41
- hide();
42
}
43
};
44
src/command-pallette/CommandPalletteUI/CommandPaletteUI.tsx
@@ -198,6 +198,10 @@ export function CommandPaletteUI({
198
'keydown',
199
(e: Event) => {
200
const { key } = e as KeyboardEvent;
201
+ if (key === 'Escape') {
202
+ hide();
203
+ }
204
+
205
return !isHistoryMode
206
? keyDownInDropdownMode(key, e)
207
: keyDownInHistoryMode(key, e);
0 commit comments