Skip to content

Commit

Permalink
Eliminate blocking keyboard shortcut conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Jul 24, 2023
1 parent 4078658 commit b38de98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/commands/src/components/command-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ export function CommandMenu() {
useShortcut(
'core/commands',
( event ) => {
// Bails to avoid obscuring the effect of the preceding handler(s).
if ( event.isDefaultPrevented() ) return;

event.preventDefault();
if ( isOpen ) {
close();
Expand Down

0 comments on commit b38de98

Please sign in to comment.