From d7dbf77ebe987b1d6d0f8cb9c7377c3c66f800ee Mon Sep 17 00:00:00 2001 From: Eric Mehl Date: Wed, 18 Sep 2024 11:06:53 -0400 Subject: [PATCH] fixup! NumericWidget : Mouse wheel adjust value --- python/GafferUI/NumericWidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/GafferUI/NumericWidget.py b/python/GafferUI/NumericWidget.py index c5fc9a76ebb..b0565e69c80 100644 --- a/python/GafferUI/NumericWidget.py +++ b/python/GafferUI/NumericWidget.py @@ -146,7 +146,7 @@ def __wheel( self, widget, event ) : assert( widget is self ) - if not self.getEditable() : + if not self.getEditable() or not self._qtWidget().hasFocus() or event.modifiers != GafferUI.ModifiableEvent.Modifiers.Control : return False self.__incrementIndex( self.getCursorPosition(), int( math.copysign( 1, event.wheelRotation ) ) )