Skip to content

Commit

Permalink
Removed the espace unloack all and the check for dynamics when changi…
Browse files Browse the repository at this point in the history
…ng accudraw values
  • Loading branch information
mathieu-fournier committed Dec 13, 2024
1 parent 80896a8 commit 01442d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ export function AccuDrawFieldContainer(props: AccuDrawFieldContainerProps) {
}, [showZ]);

const handleEscPressed = React.useCallback(() => {
IModelApp.accuDraw.unlockAllFields();
UiFramework.keyboardShortcuts.setFocusToHome();
}, []);

Expand Down
11 changes: 5 additions & 6 deletions ui/appui-react/src/appui-react/accudraw/FrameworkAccuDraw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
CompassMode,
IModelApp,
ItemField,
KeyinStatus,
NotifyMessageDetails,
OutputMessagePriority,
QuantityType,
Expand Down Expand Up @@ -309,11 +308,11 @@ export class FrameworkAccuDraw

private fieldValuesChanged(): void {
// Only change the value when in Dynamic mode. Other mode are "DontUpdate" when the input is locked and "Partial" when the user is typing.
(this.getKeyinStatus(ItemField.X_Item) === KeyinStatus.Dynamic) && this.onFieldValueChange(ItemField.X_Item);
(this.getKeyinStatus(ItemField.Y_Item) === KeyinStatus.Dynamic) && this.onFieldValueChange(ItemField.Y_Item);
(this.getKeyinStatus(ItemField.Z_Item) === KeyinStatus.Dynamic) && this.onFieldValueChange(ItemField.Z_Item);
(this.getKeyinStatus(ItemField.ANGLE_Item) === KeyinStatus.Dynamic) && this.onFieldValueChange(ItemField.ANGLE_Item);
(this.getKeyinStatus(ItemField.DIST_Item) === KeyinStatus.Dynamic) && this.onFieldValueChange(ItemField.DIST_Item);
this.onFieldValueChange(ItemField.X_Item);
this.onFieldValueChange(ItemField.Y_Item);
this.onFieldValueChange(ItemField.Z_Item);
this.onFieldValueChange(ItemField.ANGLE_Item);
this.onFieldValueChange(ItemField.DIST_Item);
}

public override setFocusItem(index: ItemField): void {
Expand Down

0 comments on commit 01442d2

Please sign in to comment.