Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Close focused thread by esc key
  • Loading branch information
t-hamano committed Sep 26, 2025
commit be7792edb4768d241dc2fa8f2184b6c6f21b628e
5 changes: 5 additions & 0 deletions packages/editor/src/components/collab-sidebar/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ function Thread( {
handleCommentSelect( thread );
}
}
// Collapse thread and focus the thread.
if ( event.key === 'Escape' ) {
unselectThread();
threadRef.current?.focus();
}
} }
tabIndex={ 0 }
role="listitem"
Expand Down