Modify ↓
Opened 12 years ago
Last modified 11 years ago
#8831 new defect
Extruding after extrude+add not possible
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
How to reproduce this bug:
- Use the building tool to create a rectangular building.
- Switch to extruder mode (x).
- Extrude the building while holding ALT to create a second area.
- Try to extrude the freshly created area normally. It won't work in most of the cases after the first click.
- Give it a second try and it'll work like a charm.
I also realized that the bug doesn't appear, if you use extrude+add both times.
Attachments (0)
Change History (3)
comment:2 by , 11 years ago
At least with Linux and some WMs like Gnome we use right Alt key (Alt Gr) instead of left Alt which is connected to the WM.
Note:
See TracTickets
for help on using tickets.
I have detected the reason but can not solve it (Buildingtools is unrelated)
This may be Windows-specific, not sure.
ALT activates the menu bar and mapview lose the focus in some strange way, so the next click does not give mousePressed event at all.
http://stackoverflow.com/questions/868553/how-to-avoid-that-pressing-the-alt-key-takes-away-the-focus-from-my-gui
I tried requestFocusInMapView but it did not work.
Consuming Alt events an AWT listner works
((KeyEvent)e).consume()
, but then the standard behaviour of Alt-activating menu is disabled for Extrude mode. Alt events come in large series "press-release-peress-release", so it is almost impossible to detect when Alt was pressed the first time (if not enabling the same hack-timer solution as in DrawMode)