@@ -835,9 +835,9 @@ def unbindObject(self, id):
835
835
836
836
def createObjectContextMenu (self , obj : wmwpy .classes .Object ):
837
837
self .objectContextMenu .delete (0 , 3 )
838
- self .objectContextMenu .add_command (label = 'delete' , command = lambda * args : self .deleteObject (obj ), accelerator = 'Del' )
839
838
self .objectContextMenu .add_command (label = 'copy' , command = lambda * args : self .copyObject (obj ), accelerator = f'{ crossplatform .shortModifier ()} +C' )
840
839
self .objectContextMenu .add_command (label = 'cut' , command = lambda * args : self .cutObject (obj ), accelerator = f'{ crossplatform .shortModifier ()} +X' )
840
+ self .objectContextMenu .add_command (label = 'delete' , command = lambda * args : self .deleteObject (obj ), accelerator = 'Del' )
841
841
842
842
return self .objectContextMenu
843
843
@@ -1516,14 +1516,14 @@ def rightClick(event):
1516
1516
return
1517
1517
1518
1518
self .object_selector ['menu' ].delete (0 , 8 )
1519
- self .object_selector ['menu' ].add_command (label = 'delete' , command = lambda * args : self .deleteObject (obj ))
1520
- self .object_selector ['menu' ].add_command (label = 'copy' , command = lambda * args : self .copyObject (obj ))
1521
- self .object_selector ['menu' ].add_command (label = 'cut' , command = lambda * args : self .cutObject (obj ))
1522
- self .object_selector ['menu' ].add_separator ()
1523
1519
self .object_selector ['menu' ].add_command (label = '↑↑ move to top' , command = lambda * args : move_to_top (obj ))
1524
1520
self .object_selector ['menu' ].add_command (label = '↑ move up' , command = lambda * args : move_up (obj ))
1525
1521
self .object_selector ['menu' ].add_command (label = '↓ move down' , command = lambda * args : move_down (obj ))
1526
1522
self .object_selector ['menu' ].add_command (label = '↓↓ move to bottom' , command = lambda * args : move_to_bottom (obj ))
1523
+ self .object_selector ['menu' ].add_separator ()
1524
+ self .object_selector ['menu' ].add_command (label = 'copy' , command = lambda * args : self .copyObject (obj ))
1525
+ self .object_selector ['menu' ].add_command (label = 'cut' , command = lambda * args : self .cutObject (obj ))
1526
+ self .object_selector ['menu' ].add_command (label = 'delete' , command = lambda * args : self .deleteObject (obj ))
1527
1527
1528
1528
self .showPopup (self .object_selector ['menu' ], event )
1529
1529
0 commit comments