The escape key is bound to exiting full screen mode in Safari by default. Therefore the browser window exits full screen when using escape to close the kbar dialog.
Suggested fix ✨
Set event.preventDefault() where the escape key press is handled.
I'm still seeing this happen in chromium browsers, but only if I first navigate into a group, then backspace back to the top, then Escape - closes the kbar dialog but also exits fullscreen.
Bug 🐞
The escape key is bound to exiting full screen mode in Safari by default. Therefore the browser window exits full screen when using escape to close the kbar dialog.
Suggested fix ✨
Set
event.preventDefault()
where the escape key press is handled.