mirror of
https://github.com/dream-num/univer.git
synced 2026-10-02 04:24:34 +08:00
@@ -106,7 +106,7 @@ export interface IMoveSelectionEnterAndTabCommandParams {
|
||||
}
|
||||
|
||||
/**
|
||||
* Move selection for enter and tab
|
||||
* Move selection for enter and tab.
|
||||
*/
|
||||
export const MoveSelectionEnterAndTabCommand: ICommand<IMoveSelectionEnterAndTabCommandParams> = {
|
||||
id: 'sheet.command.move-selection-enter-tab',
|
||||
@@ -138,14 +138,7 @@ export const MoveSelectionEnterAndTabCommand: ICommand<IMoveSelectionEnterAndTab
|
||||
|
||||
let resultRange;
|
||||
const { startRow, endRow, startColumn, endColumn } = range;
|
||||
if (
|
||||
!(
|
||||
startRow === primary.startRow &&
|
||||
endRow === primary.startRow &&
|
||||
startColumn === primary.startColumn &&
|
||||
endColumn === primary.endColumn
|
||||
)
|
||||
) {
|
||||
if (!Rectangle.equals(range, primary)) {
|
||||
// Handle the situation of moving the active cell within the selection area.
|
||||
shortcutExperienceService.remove({
|
||||
unitId,
|
||||
|
||||
Reference in New Issue
Block a user