isShiftDown on a slider [solved]

Hi, like the title says I’m looking at making a slider snap to certain values when the user is hold a modifier down. I believe I use isShiftDown() but it’s not in the slider component. Any idea how I do that?
I already know how to snap a value, that’s not the problem. :slight_smile:

Thanks,
Dave.

Never mind, I have to overide the modifierKeysChanged function and then use:
void modifierKeysChanged(const ModifierKeys& modifiers) override
{
shiftDown = modifiers.isShiftDown();
}