This commit is contained in:
mosaicer 2024-06-13 11:42:33 +00:00 committed by GitHub
commit db34166326
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -302,6 +302,11 @@ const tabCtrl = ContentState => {
// disable tab focus // disable tab focus
event.preventDefault() event.preventDefault()
// skip subsequent processing if IME is working
if (event.isComposing) {
return
}
const { start, end } = selection.getCursorRange() const { start, end } = selection.getCursorRange()
if (!start || !end) { if (!start || !end) {
return return