Skip to content

Commit

Permalink
Revert fix for select all.
Browse files Browse the repository at this point in the history
  • Loading branch information
khaykov committed Nov 27, 2024
1 parent e5dacfe commit 7a365a5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1976,6 +1976,14 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
return super.onTextContextMenuItem(id)
}
}
android.R.id.selectAll -> {
return if (text.toString() == Constants.END_OF_BUFFER_MARKER.toString()) {
deleteInlineStyleFromTheBeginning()
return true
} else {
super.onTextContextMenuItem(id)
}
}
else -> return super.onTextContextMenuItem(id)
}

Expand Down

0 comments on commit 7a365a5

Please sign in to comment.