mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Preselect the entire text entry dialog
This commit is contained in:
@@ -237,11 +237,10 @@ impl<'a, P: Param> Widget<ParamMessage, Renderer> for ParamSlider<'a, P> {
|
|||||||
// widget
|
// widget
|
||||||
self.state.drag_active = false;
|
self.state.drag_active = false;
|
||||||
|
|
||||||
|
let mut text_input_state = self.state.text_input_state.borrow_mut();
|
||||||
self.state.text_input_value = Some(self.param.to_string());
|
self.state.text_input_value = Some(self.param.to_string());
|
||||||
self.state
|
text_input_state.move_cursor_to_end();
|
||||||
.text_input_state
|
text_input_state.select_all();
|
||||||
.borrow_mut()
|
|
||||||
.move_cursor_to_end();
|
|
||||||
} else if self.state.keyboard_modifiers.command()
|
} else if self.state.keyboard_modifiers.command()
|
||||||
|| matches!(click.kind(), mouse::click::Kind::Double)
|
|| matches!(click.kind(), mouse::click::Kind::Double)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user