mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 08:08:36 -07:00
Use system keyboard in ext apps with symbols
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
ADD_SCENE(uart_terminal, start, Start)
|
||||
ADD_SCENE(uart_terminal, console_output, ConsoleOutput)
|
||||
ADD_SCENE(uart_terminal, text_input, UART_TextInput)
|
||||
ADD_SCENE(uart_terminal, text_input, TextInput)
|
||||
|
||||
@@ -23,10 +23,10 @@ void uart_terminal_scene_text_input_on_enter(void* context) {
|
||||
}
|
||||
|
||||
// Setup view
|
||||
UART_TextInput* text_input = app->text_input;
|
||||
TextInput* text_input = app->text_input;
|
||||
// Add help message to header
|
||||
uart_text_input_set_header_text(text_input, "Send new morse message");
|
||||
uart_text_input_set_result_callback(
|
||||
text_input_set_header_text(text_input, "Send new morse message");
|
||||
text_input_set_result_callback(
|
||||
text_input,
|
||||
uart_terminal_scene_text_input_callback,
|
||||
app,
|
||||
@@ -34,6 +34,8 @@ void uart_terminal_scene_text_input_on_enter(void* context) {
|
||||
UART_TERMINAL_TEXT_INPUT_STORE_SIZE,
|
||||
false);
|
||||
|
||||
text_input_add_illegal_symbols(text_input);
|
||||
|
||||
view_dispatcher_switch_to_view(app->view_dispatcher, UART_TerminalAppViewTextInput);
|
||||
}
|
||||
|
||||
@@ -56,5 +58,5 @@ bool uart_terminal_scene_text_input_on_event(void* context, SceneManagerEvent ev
|
||||
void uart_terminal_scene_text_input_on_exit(void* context) {
|
||||
UART_TerminalApp* app = context;
|
||||
|
||||
uart_text_input_reset(app->text_input);
|
||||
text_input_reset(app->text_input);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user