fix:not trigger compositionend event after enter in chrome
This commit is contained in:
@@ -359,6 +359,7 @@ export class CanvasEvent {
|
||||
}
|
||||
this.range.setRange(curIndex, curIndex)
|
||||
this.draw.render({ curIndex })
|
||||
evt.preventDefault()
|
||||
} else if (evt.key === KeyMap.Left) {
|
||||
if (isReadonly) return
|
||||
if (index > 0) {
|
||||
|
||||
@@ -56,7 +56,7 @@ export class RangeManager {
|
||||
this.range.isCrossRowCol = !!(startTdIndex || endTdIndex || startTrIndex || endTrIndex)
|
||||
// 激活控件
|
||||
const control = this.draw.getControl()
|
||||
if (~startIndex && ~endIndex && startIndex === startIndex) {
|
||||
if (~startIndex && ~endIndex) {
|
||||
const elementList = this.draw.getElementList()
|
||||
const element = elementList[startIndex]
|
||||
if (element?.type === ElementType.CONTROL) {
|
||||
|
||||
Reference in New Issue
Block a user