-
-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
When using the Enter key on a PanelResizeHandle to expand/collapse panels following the Window Splitter Pattern, the onExpand, onCollapse, and onResize callbacks are not triggered.
While a workaround can be implemented using onKeyDown, this behavior seems inconsistent since Home and End key operations correctly trigger these events.
Could you consider making the Enter key trigger these events for consistency?
Steps to reproduce:
demo: https://codesandbox.io/p/devbox/react-resizable-panels-forked-rp3v4l
- Create a PanelResizeHandle with
onExpand,onCollapse, oronResizecallbacks - Focus on the resize handle
- Press Enter key to expand/collapse the panel
- Observe that the callbacks are not triggered
Expected behavior:
Enter key operations should trigger onExpand, onCollapse, and onResize events, similar to Home and End key behavior.
Actual behavior:
Enter key operations do not trigger these callback events.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working