diff --git a/changelog.d/20250121_135206_sekachev.bs_fixed_rendering.md b/changelog.d/20250121_135206_sekachev.bs_fixed_rendering.md new file mode 100644 index 000000000000..4e660827ce5f --- /dev/null +++ b/changelog.d/20250121_135206_sekachev.bs_fixed_rendering.md @@ -0,0 +1,4 @@ +### Fixed + +- Extra shortcuts enabled from brush tools on views where not necessary + () diff --git a/cvat-ui/src/components/annotation-page/canvas/views/canvas2d/canvas-wrapper.tsx b/cvat-ui/src/components/annotation-page/canvas/views/canvas2d/canvas-wrapper.tsx index 1b26bd2af0a6..19b66630fdfd 100644 --- a/cvat-ui/src/components/annotation-page/canvas/views/canvas2d/canvas-wrapper.tsx +++ b/cvat-ui/src/components/annotation-page/canvas/views/canvas2d/canvas-wrapper.tsx @@ -64,7 +64,6 @@ import { ShortcutScope } from 'utils/enums'; import { registerComponentShortcuts } from 'actions/shortcuts-actions'; import { subKeyMap } from 'utils/component-subkeymap'; import ImageSetupsContent from './image-setups-content'; -import BrushTools from './brush-tools'; import CanvasTipsComponent from './canvas-hints'; const cvat = getCore(); @@ -1144,8 +1143,6 @@ class CanvasWrapperComponent extends React.PureComponent { }} /> - - + ); diff --git a/cvat-ui/src/components/annotation-page/standard-workspace/standard-workspace.tsx b/cvat-ui/src/components/annotation-page/standard-workspace/standard-workspace.tsx index 343347a5fbc3..ba4ba42d3a4d 100644 --- a/cvat-ui/src/components/annotation-page/standard-workspace/standard-workspace.tsx +++ b/cvat-ui/src/components/annotation-page/standard-workspace/standard-workspace.tsx @@ -16,12 +16,14 @@ import CanvasPointContextMenuComponent from 'components/annotation-page/canvas/v import IssueAggregatorComponent from 'components/annotation-page/review/issues-aggregator'; import RemoveConfirmComponent from 'components/annotation-page/standard-workspace/remove-confirm'; import PropagateConfirmComponent from 'components/annotation-page/standard-workspace/propagate-confirm'; +import BrushTools from 'components/annotation-page/canvas/views/canvas2d/brush-tools'; export default function StandardWorkspaceComponent(): JSX.Element { return ( + } />