Adds placeholder and utility hook implementations to address the issue of Control + click on a node not opening its context menu on Chrome and Safari.
Adds a placeholder file useHandleUiEvent.tsx intended for handling Control + click events on nodes. This file currently contains comments outlining the planned implementation for differentiating between regular clicks and Control + clicks, and triggering the appropriate context menu.
Introduces a new utility hook useEvent.tsx that provides a stable function identity for event handlers, allowing them to read the latest props/state. This implementation includes a detailed comment explaining its purpose, limitations, and a reference to the RFC for future migration.
Related to #2877
Adds placeholder and utility hook implementations to address the issue of
Control + click
on a node not opening its context menu on Chrome and Safari.useHandleUiEvent.tsx
intended for handlingControl + click
events on nodes. This file currently contains comments outlining the planned implementation for differentiating between regular clicks and Control + clicks, and triggering the appropriate context menu.useEvent.tsx
that provides a stable function identity for event handlers, allowing them to read the latest props/state. This implementation includes a detailed comment explaining its purpose, limitations, and a reference to the RFC for future migration.For more details, open the Copilot Workspace session.