Modify

#6730 closed enhancement (fixed)

[PATCH] Shortcut for deleting the last node in draw mode

Reported by: Cobra Owned by: team
Priority: normal Component: Core
Version: latest Keywords:
Cc:

Description

Especially when tracing from aerial imagery it happens sometimes that a node is placed where you do not want to have one. Instead of switching to select/delete or undoing and switching back to draw mode (and selecting the now last node) this could be done very fast by a shortcut. I propose backspace for this.

Attachments (1)

backspace.patch (3.1 KB) - added by akks 18 months ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 21 months ago by stoecker

  • Owner changed from team to Cobra
  • Status changed from new to needinfo

Why don't you simply use "undo" functionality?

comment:2 Changed 21 months ago by Cobra

  • Owner changed from Cobra to team
  • Status changed from needinfo to new

I mentioned undo - this interrupts the drawing as well. One click is too much work!!111! ;)

Alternative: don't lose the dangling segment when undoing.

comment:3 Changed 21 months ago by xeen

I can see the advantage of this, however backspace would only ever be useful in the very narrow case described above. What about instead undo not stopping the current draw action (=helper line visible) if possible. Undo/redo would never go into a draw action state if it was not active before. This would require tracking the last point of reference as well, though.

comment:4 Changed 20 months ago by skyper

The follow line action has the undo action implemented that way (not working, yet -> #6367).

comment:5 Changed 18 months ago by akks

I tried to add Backspace shortcut to Add mode. It undos last action and then selects last modified node.

Here is the patch...

Changed 18 months ago by akks

comment:6 Changed 18 months ago by akks

  • Summary changed from Shortcut for deleting the last node in draw mode to [PATCH] Shortcut for deleting the last node in draw mode

comment:7 Changed 18 months ago by stoecker

  • Resolution set to fixed
  • Status changed from new to closed

In [4611/josm]:

fix #6730 - patch by akks - add backspace in draw mode to undo last draw action

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.