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