Skip to content

Commit

Permalink
revert: added back checks that were removed in PR #33630, to fix the …
Browse files Browse the repository at this point in the history
…focus ts error
  • Loading branch information
Mayank-Tripathi32 committed Feb 6, 2025
1 parent be0e151 commit 2c5f0ac
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ export default function useTabNav() {

const ref = useRefEffect( ( node ) => {
function onKeyDown( event ) {
if ( event.defaultPrevented ) {
if (
event.defaultPrevented ||
( ! hasMultiSelection() && ! getSelectedBlockClientId() )
) {
return;
}

Expand Down

0 comments on commit 2c5f0ac

Please sign in to comment.