Open
Description
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! 🙌