mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[escher/text_area/field] When pasting, force cursor right of text
This commit is contained in:
@@ -147,7 +147,7 @@ bool TextArea::handleEvent(Ion::Events::Event event) {
|
||||
return true;
|
||||
}
|
||||
if (event == Ion::Events::Paste) {
|
||||
return handleEventWithText(Clipboard::sharedClipboard()->storedText());
|
||||
return handleEventWithText(Clipboard::sharedClipboard()->storedText(), false, true);
|
||||
}
|
||||
|
||||
// The following events need a scrollToCursor and return true
|
||||
|
||||
@@ -437,7 +437,7 @@ bool TextField::handleEvent(Ion::Events::Event event) {
|
||||
} else if (event.hasText()) {
|
||||
return handleEventWithText(event.text());
|
||||
} else if (event == Ion::Events::Paste) {
|
||||
return handleEventWithText(Clipboard::sharedClipboard()->storedText());
|
||||
return handleEventWithText(Clipboard::sharedClipboard()->storedText(), false, true);
|
||||
} else if ((event == Ion::Events::OK || event == Ion::Events::EXE) && !isEditing()) {
|
||||
const char * previousText = m_contentView.text();
|
||||
setEditing(true);
|
||||
|
||||
Reference in New Issue
Block a user