Keyboard: show Uppercase keys when replacing content (#1548)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Mewa 2022-09-28 19:44:24 +02:00 committed by GitHub
parent 5883e134d4
commit bcfb12bf28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,8 @@ static void text_input_view_draw_callback(Canvas* canvas, void* _model) {
canvas_set_color(canvas, ColorBlack);
}
if(text_length == 0 && char_is_lowercase(keys[column].text)) {
if(model->clear_default_text ||
(text_length == 0 && char_is_lowercase(keys[column].text))) {
canvas_draw_glyph(
canvas,
keyboard_origin_x + keys[column].x,