Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/component/sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function scrollbarMove() {
}

function selectorSet(multiple, ri, ci, indexesUpdated = true, moving = false) {
if (ri === -1 && ci === -1) return;
if (ri === -1 && ci === -1) {};
const {
table, selector, toolbar, data,
contextMenu,
Expand Down Expand Up @@ -128,6 +128,7 @@ function selectorMove(multiple, direction) {

// private methods
function overlayerMousemove(evt) {

// console.log('x:', evt.offsetX, ', y:', evt.offsetY);
if (evt.buttons !== 0) return;
if (evt.target.className === `${cssPrefix}-resizer-hover`) return;
Expand Down Expand Up @@ -742,7 +743,13 @@ function sheetInitEvents() {
const {
key, ctrlKey, shiftKey, metaKey,
} = evt;
// console.log('keydown.evt: ', keyCode);

// add ctrl A
if(ctrlKey && key === 'a'){
selector.set(-1, -1, true);
return;
}

if (ctrlKey || metaKey) {
// const { sIndexes, eIndexes } = selector;
// let what = 'all';
Expand Down