diff --git a/escher/src/layout_field.cpp b/escher/src/layout_field.cpp index 728108a0e..7ee64480b 100644 --- a/escher/src/layout_field.cpp +++ b/escher/src/layout_field.cpp @@ -476,11 +476,7 @@ bool LayoutField::privateHandleEvent(Ion::Events::Event event) { setEditing(true); } if (event.hasText()) { - if(event.text() == "%" && Ion::Events::isLockActive() ){ - m_contentView.cursor()->performBackspace(); - } else { - handleEventWithText(event.text()); - } + handleEventWithText(event.text()); } else if (event == Ion::Events::Paste) { handleEventWithText(Clipboard::sharedClipboard()->storedText(), false, true); } else { diff --git a/escher/src/text_area.cpp b/escher/src/text_area.cpp index 837e341b7..ba729f7e0 100644 --- a/escher/src/text_area.cpp +++ b/escher/src/text_area.cpp @@ -194,11 +194,7 @@ bool TextArea::handleEvent(Ion::Events::Event event) { } else if (event == Ion::Events::Percent) { return removePreviousGlyph(); } else if (event.hasText()) { - if(event.text() == "%" && Ion::Events::isLockActive()){ - return removePreviousGlyph(); - } else { - return handleEventWithText(event.text()); - } + return handleEventWithText(event.text()); } else { return false; } diff --git a/escher/src/text_field.cpp b/escher/src/text_field.cpp index b9043448d..ef3efdbaa 100644 --- a/escher/src/text_field.cpp +++ b/escher/src/text_field.cpp @@ -414,11 +414,6 @@ CodePoint TextField::XNTCodePoint(CodePoint defaultXNTCodePoint) { } bool TextField::handleEvent(Ion::Events::Event event) { - if(event.hasText()){ - if(event.text() == "%" && Ion::Events::isLockActive() ){ - return removePreviousGlyph(); - } - } assert(m_delegate != nullptr); size_t previousTextLength = strlen(text()); bool didHandleEvent = false;