Commit d638162f authored by NiranV's avatar NiranV
Browse files

Fixed: Inconsistent behavior of CTRL/Shift when using as modifier for...

Fixed: Inconsistent behavior of CTRL/Shift when using as modifier for mass/precision controls on spinners.
parent e27e31a0
......@@ -184,6 +184,10 @@ void LLSpinCtrl::onUpBtn( const LLSD& data )
{
val += (mIncrement * 10);
}
else if (MASK_CONTROL & mask)
{
val += (mIncrement / 10);
}
else
{
val += mIncrement;
......@@ -223,6 +227,10 @@ void LLSpinCtrl::onDownBtn( const LLSD& data )
F32 val = cur_val;
MASK mask = gKeyboard->currentMask(FALSE);
if (MASK_SHIFT & mask)
{
val -= (mIncrement * 10);
}
else if (MASK_CONTROL & mask)
{
val -= (mIncrement / 10);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment