Opened 12 years ago
Closed 12 years ago
#8710 closed defect (fixed)
Inconsistent MapMode focus behaviour
Reported by: | Zverikk | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | mapmode, focus | Cc: |
Description
Some actions (select, draw, delete) call Main.map.mapView.requestFocus()
when a mouse button is pressed inside a map window, but most of them don't. As a result, if a focusable component (e.g. relation search field in relations panel) is focused and you want to change MapMode from "extrude" to "select", you cannot click on the background and press "s": you have to press a MapMode button. And experienced mappers like me often hide it from the toolbar.
So there's a problem: when a JosmTextField is focused, the current action does not call requestFocus and most-used mapmode buttons are hidden, it's not easy to change the mapmode. The requestFocus should be made mandatory for all mapmodes, even in plugins.
In 5960/josm: