mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
Add an option to disable shift + clear (#368)
* add bgcolor to turtul module * add bgcolor to toolbox and a minor fix * ok is ok now i hope however * Submodule Omega-Kawaii-Theme remove * this featurs https://github.com/UpsilonNumworks/Upsilon/issues/285 * Update escher/src/text_area.cpp casse coresction Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> * change name of function beacause code to late in night is bad idee * invation of capital letter * Update apps/settings/sub_menu/code_options_controller.cpp Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> * Update escher/src/text_area.cpp Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> * im not shure all is done * the last hiden locke * fix https://github.com/UpsilonNumworks/Upsilon/issues/271 * Update apps/global_preferences.h Co-authored-by: Quentin <github@arra.red> * Update apps/settings/sub_menu/code_options_controller.cpp Co-authored-by: Quentin <git@quentinguidee.dev> * Update apps/global_preferences.h Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> * Update apps/global_preferences.h Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> * reformatting the code to meet the expected quality * Update apps/settings/base.pt.i18n Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> * Update apps/settings/base.de.i18n Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> * Update apps/settings/base.es.i18n Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> * Update apps/settings/base.hu.i18n Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> * Update apps/settings/base.it.i18n Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> * Update apps/settings/base.nl.i18n Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> * fix nameing * Update apps/settings/base.en.i18n --------- Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> Co-authored-by: Quentin <github@arra.red> Co-authored-by: Quentin <git@quentinguidee.dev>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <ion/unicode/utf8_decoder.h>
|
||||
#include <ion/unicode/utf8_helper.h>
|
||||
#include <poincare/serialization_helper.h>
|
||||
#include <../../apps/global_preferences.h>
|
||||
|
||||
#include <stddef.h>
|
||||
#include <assert.h>
|
||||
@@ -249,11 +250,13 @@ bool TextArea::handleEvent(Ion::Events::Event event) {
|
||||
contentView()->resetSelection();
|
||||
contentView()->moveCursorGeo(0, event == Ion::Events::Up ? -step : step);
|
||||
} else if (event == Ion::Events::Clear) {
|
||||
if (!contentView()->selectionIsEmpty()) {
|
||||
deleteSelection();
|
||||
return true;
|
||||
} else if (!contentView()->removeEndOfLine()) {
|
||||
contentView()->removeStartOfLine();
|
||||
if (GlobalPreferences::sharedGlobalPreferences()->clearShift()) {
|
||||
if (!contentView()->selectionIsEmpty()) {
|
||||
deleteSelection();
|
||||
return true;
|
||||
} else if (!contentView()->removeEndOfLine()) {
|
||||
contentView()->removeStartOfLine();
|
||||
}
|
||||
}
|
||||
} else if (event == Ion::Events::Paste) {
|
||||
return handleEventWithText(Clipboard::sharedClipboard()->storedText());
|
||||
|
||||
Reference in New Issue
Block a user