From 02d513b043775cb83467b5c4f4021f0ecb75e9c1 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 5 Mar 2022 22:22:17 +0100 Subject: [PATCH] Disable the Alt+Click for now Since it doesn't really work anyways, need to dive into egui's internals to figure out why it doesn't work. --- nih_plug_egui/src/widgets/param_slider.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nih_plug_egui/src/widgets/param_slider.rs b/nih_plug_egui/src/widgets/param_slider.rs index 8709a4f6..4f3c60b0 100644 --- a/nih_plug_egui/src/widgets/param_slider.rs +++ b/nih_plug_egui/src/widgets/param_slider.rs @@ -189,12 +189,12 @@ impl<'a, P: Param> ParamSlider<'a, P> { // Like double clicking, Ctrl+Click should reset the parameter self.reset_param(); response.mark_changed(); - } else if ui.input().modifiers.alt && self.draw_value { - // Allow typing in the value on an Alt+Click. Right now this is shown as part of the - // value field, so it only makes sense when we're drawing that. - // FIXME: This releases the focus again when you release the mouse button without - // moving the mouse a bit for some reason - self.begin_keyboard_entry(ui); + // // FIXME: This releases the focus again when you release the mouse button without + // // moving the mouse a bit for some reason + // } else if ui.input().modifiers.alt && self.draw_value { + // // Allow typing in the value on an Alt+Click. Right now this is shown as part of the + // // value field, so it only makes sense when we're drawing that. + // self.begin_keyboard_entry(ui); } else if ui.input().modifiers.shift { // And shift dragging should switch to a more granulra input method self.granular_drag(ui, response.drag_delta());