Temporarily add more widgets to vizia Gain GUI

This commit is contained in:
Robbert van der Helm
2022-03-20 01:23:44 +01:00
parent 4f9a83860b
commit 1a9db3ab8e
3 changed files with 25 additions and 3 deletions

View File

@@ -307,7 +307,10 @@ impl View for ParamSlider {
match window_event {
WindowEvent::MouseDown(MouseButton::Left) => {
if cx.modifiers.alt() {
// ALt+Click brings up a text entry dialog
cx.emit(ParamSliderInternalEvent::SetTextInputActive(true));
cx.current.set_active(cx, true);
// TODO: Once vizia implements it: (and probably do this from
// `SetTextInputActive`)
// - Focus the text box