diff --git a/firmware/application/apps/ui_text_editor.cpp b/firmware/application/apps/ui_text_editor.cpp index 4c155f8c..346db1bd 100644 --- a/firmware/application/apps/ui_text_editor.cpp +++ b/firmware/application/apps/ui_text_editor.cpp @@ -274,7 +274,7 @@ TextEditorMenu::TextEditorMenu() &rect_frame, &button_home, &button_end, - &button_copy, + &button_zoom, &button_delline, &button_edit, &button_addline, @@ -333,7 +333,10 @@ TextEditorView::TextEditorView(NavigationView& nav) hide_menu(true); }; - menu.on_copy() = [this]() { + menu.on_zoom() = [this]() { + viewer.toggle_font_zoom(); + refresh_ui(); + hide_menu(true); }; menu.on_delete_line() = [this]() { diff --git a/firmware/application/apps/ui_text_editor.hpp b/firmware/application/apps/ui_text_editor.hpp index a8fbd73e..0dbb512e 100644 --- a/firmware/application/apps/ui_text_editor.hpp +++ b/firmware/application/apps/ui_text_editor.hpp @@ -130,7 +130,7 @@ class TextEditorMenu : public View { std::function& on_home() { return button_home.on_select; } std::function& on_end() { return button_end.on_select; } - std::function& on_copy() { return button_copy.on_select; } + std::function& on_zoom() { return button_zoom.on_select; } std::function& on_delete_line() { return button_delline.on_select; } std::function& on_edit_line() { return button_edit.on_select; } std::function& on_add_line() { return button_addline.on_select; }