gpui-component/crates/ui
Moulberry e7aa8983dc
input: Delete selected text with modifier keys (#1497)
In most applications, when text is selected and backspace/delete is
pressed, the selection is simply deleted.

Currently, gpui-component will ignore the selected text and delete the
previous/next word when Ctrl is pressed.

This can be very confusing especially if you do ctrl+a then
ctrl+backspace, expecting the input to be cleared.

This PR makes it so that if there is an active selection, the active
selection is deleted before doing any extra processing.
2025-11-04 16:54:31 +08:00
..
locales chore: Rename Dropdown to Select, TextInput to Input. (#1449) 2025-10-28 21:22:31 +08:00
src input: Delete selected text with modifier keys (#1497) 2025-11-04 16:54:31 +08:00
tests/fixtures chore: Rename Dropdown to Select, TextInput to Input. (#1449) 2025-10-28 21:22:31 +08:00
Cargo.toml Bump v0.4.0-preview0 2025-10-30 15:50:45 +08:00
LICENSE-APACHE chore: Fix license link in crate meta. (#1393) 2025-10-17 10:32:09 +08:00