mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 13:58:36 -07:00
<:N1:1130620612352679958><:N2:1130620354440745162>
This commit is contained in:
@@ -827,12 +827,7 @@ bool text_input_insert_character(TextInput* text_input, char chr) {
|
||||
}
|
||||
if(chr == 0x01) { // Ctrl A = Select all text
|
||||
with_view_model(
|
||||
text_input->view,
|
||||
TextInputModel * model,
|
||||
{
|
||||
model->clear_default_text = true;
|
||||
},
|
||||
true);
|
||||
text_input->view, TextInputModel * model, { model->clear_default_text = true; }, true);
|
||||
return true;
|
||||
}
|
||||
for(size_t k = 0; k < keyboard_count; k++) {
|
||||
@@ -852,8 +847,10 @@ bool text_input_insert_character(TextInput* text_input, char chr) {
|
||||
model->selected_keyboard = k;
|
||||
model->selected_row = r;
|
||||
model->selected_column = key;
|
||||
bool shift = (chr == upper) != (model->clear_default_text || strlen(model->text_buffer) == 0);
|
||||
text_input_handle_ok(text_input, model, shift ? InputTypeLong : InputTypeShort);
|
||||
bool shift = (chr == upper) != (model->clear_default_text ||
|
||||
strlen(model->text_buffer) == 0);
|
||||
text_input_handle_ok(
|
||||
text_input, model, shift ? InputTypeLong : InputTypeShort);
|
||||
},
|
||||
true);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user