Skip to content

fix: enable text selection inside pane_grid - #3505

Open
xosxos wants to merge 1 commit into
iced-rs:masterfrom
xosxos:patch-3
Open

xosxos wants to merge 1 commit into
iced-rs:masterfrom
xosxos:patch-3

Conversation

@xosxos

@xosxos xosxos commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

FYI: I pulled upstream to try the new text selection API. It did not work inside a pane_grid widget.

This debug is partly AI slop. I think shell.capture_event() swallowed the click event when the cursor was within pane bounds. However, button pressing still did work. Anyhow, the patch works for me in a pretty extensive pane_grid setup. Moving, clicking, resizing panes etc works. I have not run any official tests.

Just a heads up.

Selecting text with `.selectable(true)` did not work inside panes due to `shell.capture_event()` swallowing the event when cursor was within bounds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant