fixing stuff
This commit is contained in:
+3
-14
@@ -103,14 +103,11 @@ void NumberEdit::onEvent(event_t event)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case EVT_KEY_FIRST(KEY_EXIT):
|
case EVT_KEY_FIRST(KEY_EXIT):
|
||||||
return;
|
|
||||||
|
|
||||||
case EVT_KEY_BREAK(KEY_EXIT):
|
|
||||||
#if defined(SOFTWARE_KEYBOARD)
|
#if defined(SOFTWARE_KEYBOARD)
|
||||||
Keyboard::hide();
|
Keyboard::hide();
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
#if defined(HARDWARE_TOUCH)
|
#if defined(HARDWARE_TOUCH)
|
||||||
@@ -174,11 +171,3 @@ bool NumberEdit::onTouchEnd(coord_t, coord_t)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void NumberEdit::onFocusLost()
|
|
||||||
{
|
|
||||||
#if defined(SOFTWARE_KEYBOARD)
|
|
||||||
Keyboard::hide();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
FormField::onFocusLost();
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -67,8 +67,6 @@ class NumberEdit : public BaseNumberEdit
|
|||||||
bool onTouchEnd(coord_t x, coord_t y) override;
|
bool onTouchEnd(coord_t x, coord_t y) override;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void onFocusLost() override;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::function<void(BitmapBuffer *, LcdFlags, int)> displayFunction;
|
std::function<void(BitmapBuffer *, LcdFlags, int)> displayFunction;
|
||||||
std::string prefix;
|
std::string prefix;
|
||||||
|
|||||||
Reference in New Issue
Block a user