[escher] TextArea handles Paste event.

Change-Id: I33c0d21093f94edd987d7f4d2f7fd7363a1ee525
This commit is contained in:
Léa Saviot
2017-11-13 11:56:21 +01:00
committed by Romain Goyet
parent 414e537969
commit ce30428306

View File

@@ -359,8 +359,9 @@ bool TextArea::handleEvent(Ion::Events::Event event) {
if (!m_contentView.removeEndOfLine()) {
m_contentView.removeStartOfLine();
}
} else
{
} else if (event == Ion::Events::Paste) {
insertText(Clipboard::sharedClipboard()->storedText());
} else {
return false;
}
/* Technically, we do not need to overscroll in text area. However,