Opened 11 years ago

Last modified 10 years ago

#8831 new defect

Extruding after extrude+add not possible

Reported by: andre-r@… Owned by: team
Priority: minor Milestone:
Component: Core Version: latest
Keywords: Cc:


How to reproduce this bug:

  1. Use the building tool to create a rectangular building.
  2. Switch to extruder mode (x).
  3. Extrude the building while holding ALT to create a second area.
  4. Try to extrude the freshly created area normally. It won't work in most of the cases after the first click.
  5. 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:1 by akks, 11 years ago

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.

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)

Last edited 11 years ago by akks (previous) (diff)

comment:2 by skyper, 10 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.

comment:3 by akks, 10 years ago

On Windows right Alt works the same way as left...

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to andre-r@….
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.