Skip to content

Commit

Permalink
Added some shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlegiantJGC committed Mar 27, 2020
1 parent b622909 commit 3499c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amulet_map_editor/plugins/programs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def __init__(self, parent, path):
self._finished = True

def menu(self, menu: MenuData) -> MenuData:
menu.setdefault('&File', {}).setdefault('system', {}).setdefault('Save', lambda evt: self.world.save())
menu.setdefault('&File', {}).setdefault('system', {}).setdefault('Save\tCtrl+s', lambda evt: self.world.save())
# menu.setdefault('&File', {}).setdefault('system', {}).setdefault('Save As', lambda evt: self.GetGrandParent().close_world(self.world.world_path))
menu.setdefault('&File', {}).setdefault('exit', {}).setdefault('Close World', lambda evt: self.GetGrandParent().close_world(self.world.world_path))
menu.setdefault('&File', {}).setdefault('exit', {}).setdefault('Close World\tCtrl+w', lambda evt: self.GetGrandParent().close_world(self.world.world_path))
return self._extensions[self.GetSelection()].menu(menu)

def _load_extensions(self):
Expand Down

0 comments on commit 3499c36

Please sign in to comment.