-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a text input that only accepts full numbers (int) #3350
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also include the new header in "sdk_headers" for gui module. And update API CSV's for both f7 and f18 afterwards.
@hedger Thank you for the feedback. |
@hedger are these fail messages normal or am I expected to do something to fix this? |
Sorry for delay with your PR. |
@skotopes
|
trim.7362EBC2-3BCF-48BD-AF7D-D92890EC4349.MOV |
crashing on exit because some view was not released from view dispatcher |
model->selected_row = 0; | ||
model->selected_column = 0; | ||
model->clear_default_text = false; | ||
model->text_buffer = ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got feeling that this part was copied from another place. We are not proud with it )
General concept for view modules is that they should own their own buffer and then provide it in callback call.
static const uint8_t enter_symbol = '\r'; | ||
static const uint8_t backspace_symbol = '\b'; | ||
|
||
static const NumberInputKey keyboard_keys_row_1[] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we talking about numbers(int) you may want to provide negative sign too.
Also it will be nice if limits(MIN/MAX) and maybe int size be adjustable
Un-draft when ready |
also please fix build issues (API mismatch) |
@leedave need help? |
@skotopes |
@leedave change |
@skotopes |
* GUI: Fix array out of bounds in menu exit * Gui: fix incorrect empty menu handling * Gui: add missing item check in menu ok handling * Gui: remove dead code from menu module Co-authored-by: あく <alleteam@gmail.com>
Co-authored-by: あく <alleteam@gmail.com>
77c0529
to
0b3a8a1
Compare
…velopment to spare compile time
So after a long wait, I finally managed to add your requests
|
What's new
Verification
Checklist (For Reviewer)