mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 10:10:08 +02:00
Merge pull request #31603 from overleaf/mg-context-menu-focus-on-close
Return focus to editor on context menu close GitOrigin-RevId: 60ad8040c62c5c174d70cf88e9d6698dd592bbcf
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user