So here’s a question for an adept Python coder…
I was paging through modules and found what looks like keybindings defined in the
C:\Program Files\GrampsAIO64-5.1.3\gramps\gui\viewmanager.py
(Win10 installed Gramps 5.1.3) starting at line 351
def __init_lists(self):
"""
Initialize the actions lists for the UIManager
"""
self._app_actionlist = [
('quit', self.quit, None if is_quartz() else "<PRIMARY>q"),
('preferences', self.preferences_activate),
('about', self.display_about_box), ]
self._file_action_list = [
#('FileMenu', None, _('_Family Trees')),
('Open', self.__open_activate, "<PRIMARY>o"),
#('OpenRecent'_("Open an existing database")),
#('quit', self.quit, "<PRIMARY>q"),
#('ViewMenu', None, _('_View')),
.
.
.
and so forth
Is it likely that I could disable the Ctrl-w hotkey by commenting out a line of the following lines starting at #384:
self._readonly_action_list = [
('Close', self.close_database, "<control>w"),
('Export', self.export_data, "<PRIMARY>e"),
and @Mihle might be able to achieve his/her tweak by modifying lines around #404:
#('<PRIMARY>BackSpace', self.__keypress, '<PRIMARY>BackSpace'),
#('<PRIMARY>Delete', self.__keypress, '<PRIMARY>Delete'),
#('<PRIMARY>Insert', self.__keypress, '<PRIMARY>Insert'),
#('<PRIMARY>J', self.__keypress, '<PRIMARY>J'),
hmmm… those lines look like they’re already commented out. They’re also in the self._readonly_action_list section. So his/her Ctrl-delete would be in another subsection.
