1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Don't use Select to toggle boolean fields

This commit is contained in:
Rhys Weatherley 2012-05-20 11:22:57 +10:00
parent 2d031bd2e4
commit 1a1d3079c0

View File

@ -27,7 +27,7 @@
* \brief Field that manages the input of a boolean value.
*
* BoolField is intended for field values that are modifiable by the user.
* Pressing one of Up, Down, or Select will toggle the field's current value.
* Pressing one of Up or Down will toggle the field's current value.
*
* The following example creates a boolean field that shows the state
* of the status LED on D13. When the LED is on (the default), the string
@ -100,8 +100,7 @@ BoolField::BoolField(Form &form, const String &label, const String &trueLabel, c
int BoolField::dispatch(int event)
{
if (event == LCD_BUTTON_UP || event == LCD_BUTTON_DOWN ||
event == LCD_BUTTON_SELECT) {
if (event == LCD_BUTTON_UP || event == LCD_BUTTON_DOWN) {
setValue(!_value);
return FORM_CHANGED;
} else {