Skip to content

Commit

Permalink
fix(ui): do not clear buffer on escape if filtering/transforming
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Sep 9, 2024
1 parent ebb92be commit b6cef9d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,12 @@ export class CanvasToolModule extends CanvasModuleBase {
// Cancel shape drawing on escape
e.preventDefault();
const selectedEntity = this.manager.stateApi.getSelectedEntityAdapter();
if (selectedEntity) {
if (
selectedEntity &&
!selectedEntity.filterer?.$isFiltering.get() &&
!selectedEntity.transformer.$isTransforming.get() &&
selectedEntity.bufferRenderer.hasBuffer()
) {
selectedEntity.bufferRenderer.clearBuffer();
}
return;
Expand Down

0 comments on commit b6cef9d

Please sign in to comment.