Main Window menu 'Add' keyboard Acellerators (Gramps50) (#530)

* Fix Add menu Accelerators so they don't activate on Shift-'x'

Fixes #10379

* Change Gramps 'Add' menu so 'New' is not used
This commit is contained in:
Paul Culley 2018-01-21 20:21:46 -06:00 committed by Sam Manzi
parent 90378f19c5
commit 3266625669

View File

@ -136,8 +136,6 @@ UIDEFAULT = '''<ui>
<menuitem action="Quit"/> <menuitem action="Quit"/>
</menu> </menu>
<menu action="AddMenu"> <menu action="AddMenu">
<menu action="AddNewMenu">
<separator/>
<menuitem action="PersonAdd"/> <menuitem action="PersonAdd"/>
<separator/> <separator/>
<menuitem action="FamilyAdd"/> <menuitem action="FamilyAdd"/>
@ -150,7 +148,6 @@ UIDEFAULT = '''<ui>
<menuitem action="RepositoryAdd"/> <menuitem action="RepositoryAdd"/>
<menuitem action="MediaAdd"/> <menuitem action="MediaAdd"/>
<menuitem action="NoteAdd"/> <menuitem action="NoteAdd"/>
</menu>
</menu> </menu>
<menu action="EditMenu"> <menu action="EditMenu">
<menuitem action="Undo"/> <menuitem action="Undo"/>
@ -599,12 +596,12 @@ class ViewManager(CLIManager):
('Clipboard', 'edit-paste', _('Clip_board'), "<PRIMARY>b", ('Clipboard', 'edit-paste', _('Clip_board'), "<PRIMARY>b",
_("Open the Clipboard dialog"), self.clipboard), _("Open the Clipboard dialog"), self.clipboard),
('AddMenu', None, _('_Add')), ('AddMenu', None, _('_Add')),
('AddNewMenu', None, _('New')), #('AddNewMenu', None, _('New')),
('PersonAdd', None, _('Person'), "<Alt>p", None, ('PersonAdd', None, _('Person'), "<shift><Alt>p", None,
self.add_new_person), self.add_new_person),
('FamilyAdd', None, _('Family'), "<Alt>y", None, ('FamilyAdd', None, _('Family'), "<shift><Alt>y", None,
self.add_new_family), self.add_new_family),
('EventAdd', None, _('Event'), "<shift>e", None, ('EventAdd', None, _('Event'), "<shift><Alt>e", None,
self.add_new_event), self.add_new_event),
('PlaceAdd', None, _('Place'), "<shift><Alt>p", None, ('PlaceAdd', None, _('Place'), "<shift><Alt>p", None,
self.add_new_place), self.add_new_place),