If scroll value out of range, set min or max number_edit value
This commit is contained in:
committed by
Peter Feerick
parent
dd8c122db5
commit
b211ce5af6
@@ -82,6 +82,7 @@ void NumberEdit::onEvent(event_t event)
|
||||
onKeyPress();
|
||||
}
|
||||
else {
|
||||
setValue(vmax);
|
||||
onKeyError();
|
||||
}
|
||||
return;
|
||||
@@ -97,6 +98,7 @@ void NumberEdit::onEvent(event_t event)
|
||||
onKeyPress();
|
||||
}
|
||||
else {
|
||||
setValue(vmin);
|
||||
onKeyError();
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user