Compare commits

...

1 Commits

Author SHA1 Message Date
Daniel
95d46c84a6 fix: abort copy styles action when pressing esc 2025-12-06 23:41:00 +01:00

View File

@@ -322,6 +322,11 @@ const Workbook = (props: { model: Model; workbookState: WorkbookState }) => {
},
onEscape: (): void => {
workbookState.clearCutRange();
workbookState.setCopyStyles(null);
const el = rootRef.current?.getElementsByClassName("sheet-container")[0];
if (el) {
(el as HTMLElement).style.cursor = "auto";
}
setRedrawId((id) => id + 1);
},
onSelectColumn: (): void => {