Skip to content

Commit e4c33e1

Browse files
authored
fix(docs): keep cursor stable at document bounds (#7149)
1 parent cdae784 commit e4c33e1

12 files changed

Lines changed: 1410 additions & 98 deletions

File tree

packages/docs-ui/src/commands/operations/doc-cursor.operation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import type { Direction, IOperation } from '@univerjs/core';
1818
import { CommandType } from '@univerjs/core';
1919

20-
export type DocCursorMoveGranularity = 'character' | 'word' | 'line' | 'document';
20+
export type DocCursorMoveGranularity = 'character' | 'word' | 'line' | 'paragraph' | 'document';
2121

2222
export interface IMoveCursorOperationParams {
2323
direction: Direction;

packages/docs-ui/src/controllers/__tests__/doc-move-cursor.controller.spec.ts

Lines changed: 447 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)