Skip to content

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

Open
@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