Skip to content

Commit

Permalink
unified import
Browse files Browse the repository at this point in the history
  • Loading branch information
m2a2x committed Oct 3, 2024
1 parent 7d63e72 commit af25fc9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/components/overlay/keyboard.service.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { getRange } from '@store';
import { codesLetter } from '../../utils/key.codes';
import {
codesLetter,
isAll,
isClear,
isCopy,
isCut,
isEnterKeyValue,
isPaste,
isTab,
} from '../../utils/key.utils';
import { timeout } from '../../utils';
timeout,
RESIZE_INTERVAL,
type Observable,
} from '../../utils';
import {
EventData,
getCoordinate,
isAfterLast,
isBeforeFirst,
} from './selection.utils';
import { RESIZE_INTERVAL } from '../../utils/consts';
import { Cell, Nullable, RangeArea, SelectionStoreState } from '@type';
import { Observable } from '../../utils';

type Config = {
selectionStore: Observable<SelectionStoreState>;
Expand All @@ -29,7 +29,11 @@ type Config = {
cancel(): void;

clearCell(): void;
focus(focus: Cell, changes: Partial<Cell>, focusNextViewport?: number): boolean;
focus(
focus: Cell,
changes: Partial<Cell>,
focusNextViewport?: number,
): boolean;

getData(): any;
internalPaste(): void;
Expand Down Expand Up @@ -202,7 +206,7 @@ export class KeyboardService {
return { changes: { x: -1 }, isMulti: false };
}
}

switch (e.code) {
case codesLetter.ARROW_UP:
return { changes: { y: -1 }, isMulti };
Expand Down

0 comments on commit af25fc9

Please sign in to comment.