Skip to content

Feature Request: Add support for exiting active modes via Escape key with optional toggle flagΒ #1586

@nikitabiichuk2009

Description

@nikitabiichuk2009

Description

Hi Geoman team! πŸ‘‹

I'd like to propose a small UX improvement to make the editor more user-friendly:

✨ Feature Request
Support exiting current active modes (draw, edit, drag, rotate, remove) when pressing the Escape key β€” similar to how many design tools behave (e.g. Figma, Photoshop).

πŸ’‘ Optional Enhancement
Add a global flag or per-control config to enable/disable this behavior. For example:

map.pm.setGlobalOptions({ exitModeOnEscape: true });

or:

map.pm.Toolbar.createCustomControl({
  name: 'myCustomMode',
  exitOnEscape: true,
  ...
});

This would also allow users to opt-out of Escape-to-exit for specific modes if needed.

βœ… Benefits
Improves usability and discoverability of exit behavior

Aligns with common user expectations

Simplifies logic for users building custom integrations

Thanks for building and maintaining an awesome tool! πŸ™Œ

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions