Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#8846 closed defect (fixed)

Copying and pasting a node places that node at the screen centre (in Mac OS)

Reported by: Zverikk Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: node, copy, paste, mac Cc:

Description (last modified by Zverikk)

  1. Select a node
  2. Cmd+C
  3. Pan the map
  4. Cmd+V

In windows and linux the node is pasted in the mouse location (under cursor), in Mac OS X it is put in the centre of the screen. This is quite inconvenient.

Attachments (0)

Change History (4)

comment:1 Changed 6 years ago by Zverikk

Description: modified (diff)

comment:2 Changed 6 years ago by Don-vip

We check for ActionEvent.CTRL_MASK in all cases, it does not work on Mac OSX where META_DOWN_MASK should be used instead. I'm afraid it does not only concern this action but a significant number of them.

EDIT: this method should be used http://docs.oracle.com/javase/6/docs/api/java/awt/Toolkit.html#getMenuShortcutKeyMask()

EDIT2: no other action seems impacted

Last edited 6 years ago by Don-vip (previous) (diff)

comment:3 Changed 6 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 6047/josm:

fix #8846 - use correct key mask on Mac in PasteAction

comment:4 Changed 6 years ago by Zverikk

confirmed, fixed. Thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.