Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 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 by Zverikk, 11 years ago

Description: modified (diff)

comment:2 by Don-vip, 11 years ago

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 11 years ago by Don-vip (previous) (diff)

comment:3 by Don-vip, 11 years ago

Resolution: fixed
Status: newclosed

In 6047/josm:

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

comment:4 by Zverikk, 11 years ago

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. Next status will be 'reopened'.

Add Comment


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