Skip to content

Commit 7dae385

Browse files
authored
Merge pull request #663 from wordpress-mobile/issue/662-keep-focus-on-copy
Issue/662 keep focus on copy
2 parents f9361dc + 03165a4 commit 7dae385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
12421242
android.R.id.pasteAsPlainText -> paste(text, min, max)
12431243
android.R.id.copy -> {
12441244
copy(text, min, max)
1245-
clearFocus() // hide text action menu
1245+
setSelection(max) // dismiss the selection to make the action menu hide
12461246
}
12471247
android.R.id.cut -> {
12481248
copy(text, min, max)

0 commit comments

Comments
 (0)