fix:not trigger compositionend event after enter in chrome

pr675
黄云飞 4 years ago
parent ac8ba19a05
commit 61c0f801fa

@ -359,6 +359,7 @@ export class CanvasEvent {
} }
this.range.setRange(curIndex, curIndex) this.range.setRange(curIndex, curIndex)
this.draw.render({ curIndex }) this.draw.render({ curIndex })
evt.preventDefault()
} else if (evt.key === KeyMap.Left) { } else if (evt.key === KeyMap.Left) {
if (isReadonly) return if (isReadonly) return
if (index > 0) { if (index > 0) {

@ -56,7 +56,7 @@ export class RangeManager {
this.range.isCrossRowCol = !!(startTdIndex || endTdIndex || startTrIndex || endTrIndex) this.range.isCrossRowCol = !!(startTdIndex || endTdIndex || startTrIndex || endTrIndex)
// 激活控件 // 激活控件
const control = this.draw.getControl() const control = this.draw.getControl()
if (~startIndex && ~endIndex && startIndex === startIndex) { if (~startIndex && ~endIndex) {
const elementList = this.draw.getElementList() const elementList = this.draw.getElementList()
const element = elementList[startIndex] const element = elementList[startIndex]
if (element?.type === ElementType.CONTROL) { if (element?.type === ElementType.CONTROL) {

Loading…
Cancel
Save