Merge remote-tracking branch 'origin/main-dev' into main-demo

This commit is contained in:
2025-07-11 18:18:27 +05:30
20 changed files with 970 additions and 125 deletions

View File

@@ -16,6 +16,7 @@ export const handleCanvasCursors = (name: string) => {
pen: 'pen',
'free-hand': 'hand',
move: 'move',
comment: 'comment',
// Add more mappings as needed
};

View File

@@ -53,7 +53,7 @@ const KeyPressListener: React.FC = () => {
const { setCreateNewVersion } = useVersionHistoryStore();
const { setVersionHistoryVisible } = useVersionHistoryVisibleStore();
const { setSelectedComment } = useSelectedComment();
const { setDfxUploaded, setDxfWallGenerate } = useDfxUpload();
const { setDfxUploaded } = useDfxUpload();
const isTextInput = (element: Element | null): boolean =>
element instanceof HTMLInputElement ||
element instanceof HTMLTextAreaElement ||
@@ -128,6 +128,9 @@ const KeyPressListener: React.FC = () => {
setActiveTool("measure");
setToolMode("MeasurementScale");
}
if (key === "C") {
setActiveTool("comment");
}
};
const handleSidebarShortcuts = (key: string) => {