Return focus to editor on context menu close GitOrigin-RevId: 60ad8040c62c5c174d70cf88e9d6698dd592bbcf
@@ -46,6 +46,7 @@ export const useContextMenuItems = () => {
const closeMenu = useCallback(() => {
view.dispatch({ effects: closeContextMenuEffect.of(null) })
+ view.focus()
}, [view])
// Handle closing the menu when it loses focus, e.g. click outside the editor