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
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,16 @@ export function WidgetBuilderSlideout({
});
}, [initialState, onClose, state]);

useEffect(() => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function handleKeyDown(event: KeyboardEvent) {
if (event.key === 'Escape') {
onCloseWithModal();
}
}
document.addEventListener('keydown', handleKeyDown);
return () => document.removeEventListener('keydown', handleKeyDown);
}, [onCloseWithModal]);
Comment thread
sentry[bot] marked this conversation as resolved.
Outdated
Comment thread
NicoHinderling marked this conversation as resolved.
Outdated

const breadcrumbs = customizeFromLibrary
? [
{
Expand Down
Loading