提交 203b1940 编写于 作者: C campaign

by zhanyi

上级 100c2f58
...@@ -471,18 +471,20 @@ UE.plugins['table'] = function () { ...@@ -471,18 +471,20 @@ UE.plugins['table'] = function () {
me.addListener("mousedown", mouseDownEvent); me.addListener("mousedown", mouseDownEvent);
me.addListener("mouseup", mouseUpEvent); me.addListener("mouseup", mouseUpEvent);
var currentRowIndex = 0;
me.addListener('tabkeydown',function(){ me.addListener('tabkeydown',function(){
var range = this.selection.getRange(), var range = this.selection.getRange(),
obj = getTableItemsByRange(me); obj = getTableItemsByRange(me);
if(obj.table){ if(obj.table){
var cell = obj.cell, var cell = obj.cell,
ua = getUETable(cell); ua = getUETable(cell);
var nextCell = ua.getTabNextCell(cell,cell.getAttribute('preRowIndex')); if(cell.rowSpan > 1){
}
currentRowIndex = cell.rowSpan > 1 ? currentRowIndex : ua.getCellInfo(cell).rowIndex;
var nextCell = ua.getTabNextCell(cell,currentRowIndex);
if(nextCell){ if(nextCell){
if(nextCell.rowSpan > 1){
nextCell.setAttribute('preRowIndex',ua.getCellInfo(cell).rowIndex);
}
if(isEmptyBlock(nextCell)){ if(isEmptyBlock(nextCell)){
range.setStart(nextCell,0).setCursor(false,true) range.setStart(nextCell,0).setCursor(false,true)
}else{ }else{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册