Skip to main content

set_native_touch_selection

Function set_native_touch_selection 

Source
pub fn set_native_touch_selection(enabled: bool, cx: &mut App)
Expand description

Let the platform draw the touch selection UI of a focused Input: the selection handles and the edit menu a long press leaves behind.

Use it on a host that already shows its own text UI over the window, such as Android’s floating toolbar and drag handles. The long press still selects a word; the platform follows that selection and drives it back through the window’s input handler. Selections in plain text, outside an input, keep the handles and menu drawn here.