mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 09:16:01 +00:00
#254 tab navigation in datagrid
This commit is contained in:
@@ -1139,7 +1139,7 @@
|
|||||||
|
|
||||||
handleCursorMove(event);
|
handleCursorMove(event);
|
||||||
|
|
||||||
if (event.shiftKey && event.keyCode != keycodes.shift) {
|
if (event.shiftKey && event.keyCode != keycodes.shift && event.keyCode != keycodes.tab) {
|
||||||
selectedCells = getCellRange(shiftDragStartCell || currentCell, currentCell);
|
selectedCells = getCellRange(shiftDragStartCell || currentCell, currentCell);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1188,6 +1188,21 @@
|
|||||||
return moveCurrentCell(currentCell[0] - visibleRowCountLowerBound, currentCell[1], event);
|
return moveCurrentCell(currentCell[0] - visibleRowCountLowerBound, currentCell[1], event);
|
||||||
case keycodes.pageDown:
|
case keycodes.pageDown:
|
||||||
return moveCurrentCell(currentCell[0] + visibleRowCountLowerBound, currentCell[1], event);
|
return moveCurrentCell(currentCell[0] + visibleRowCountLowerBound, currentCell[1], event);
|
||||||
|
case keycodes.tab: {
|
||||||
|
if (event.shiftKey) {
|
||||||
|
if (currentCell[1] > 0) {
|
||||||
|
return moveCurrentCell(currentCell[0], currentCell[1] - 1, event);
|
||||||
|
} else {
|
||||||
|
return moveCurrentCell(currentCell[0] - 1, columnSizes.realCount - 1, event);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (currentCell[1] < columnSizes.realCount - 1) {
|
||||||
|
return moveCurrentCell(currentCell[0], currentCell[1] + 1, event);
|
||||||
|
} else {
|
||||||
|
return moveCurrentCell(currentCell[0] + 1, 0, event);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user