Add composing handler to Menu class

This commit is contained in:
murata0705 2019-07-05 09:44:06 +09:00
parent 8aa39d1393
commit a7f4ee7dab

View File

@ -86,6 +86,10 @@ class Menu {
update(view, lastState) {
const { state } = view
if (view.composing) {
return
}
// Don't do anything if the document/selection didn't change
if (lastState && lastState.doc.eq(state.doc) && lastState.selection.eq(state.selection)) {
return