fix: Prevent context menu from closing prematurely on mouse movement and hover interactions #1
Loading…
Reference in New Issue
No description provided.
Delete Branch "pxlman/Acord:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The context menu would disappear immediately after opening or when the user moved the mouse to interact with menu items. This was caused by overly aggressive menu dismissal logic that closed the menu on any message except
ShowContextMenu.Root Cause
The
preserve_context_menuflag only preserved the menu forShowContextMenumessages, causing:CursorMoveevents (mouse movement) to close the menu instantlyTableMsg::CellEnterevents (hovering over menu items) to close the menuSolution
Updated the menu preservation logic to keep the menu open for all interaction messages that occur while the menu is active: