Skip to content

[feat]: ESCAPE Key to Cancel Annotation Actions #122

@bovandersteene

Description

@bovandersteene

Add support for the ESCAPE key to cancel in-progress annotation operations, allowing users to abort create, move, or resize actions without committing changes.

Description

When a user is in the middle of creating, moving, or resizing an annotation, pressing the ESCAPE key should immediately cancel the operation and restore the previous state. This provides a familiar, intuitive way to abort actions that follows standard UI/UX conventions across desktop applications.

Current Behavior

  • User must complete or manually undo annotation operations
  • No quick way to cancel mid-action
  • Potentially frustrating for accidental or incorrect operations

Proposed Behavior

  • ESCAPE key immediately cancels the current operation
  • No annotation is created if canceling during creation
  • Annotation returns to original position if canceling during move
  • Annotation returns to original size if canceling during resize
  • Visual feedback shows cancellation occurred
  • Event is send that cancel the behaviour

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions