Skip to content

Commit

Permalink
Add shortcut for "add_point_to_edge"
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Mar 15, 2020
1 parent df820a3 commit f0f6454
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions labelme/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,11 @@ def __init__(
shortcuts['undo_last_point'], 'undo',
self.tr('Undo last drawn point'), enabled=False)
addPointToEdge = action(
self.tr('Add Point to Edge'),
self.canvas.addPointToEdge,
None,
'edit',
self.tr('Add point to the nearest edge'),
text=self.tr('Add Point to Edge'),
slot=self.canvas.addPointToEdge,
shortcut=shortcuts['add_point_to_edge'],
icon='edit',
tip=self.tr('Add point to the nearest edge'),
enabled=False,
)
removePoint = action(
Expand Down

0 comments on commit f0f6454

Please sign in to comment.