Modify

Opened 8 years ago

Last modified 7 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:

Description

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 Changed 8 years ago by akks

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)

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

comment:2 Changed 7 years ago by skyper

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 Changed 7 years ago by akks

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to andre-r@online.de
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.