Thanks for this, very welcome. Does it allow a shortcut to enable skipping betwwen the top half and bottom half of a dialog? For example, on opening a person, can you create a new event for that person solely using the keyboard?
Yes — you can already do this today, but it’s via pre-existing Gramps code, not anything added by this new code.
How it works right now:
- The Person editor’s tabs forward key events to GrampsTab.key_pressed, which binds Alt+Left / Alt+Right to switch notebook tabs
- The Events tab is an embedded list whose key_pressed handler binds Insert → add a new event, Delete → remove, Enter → edit. Events is typically the first/default tab in the person editor, so in practice you can open a person, land on Events, and hit Insert to create one — no mouse needed.
The new code adds the configurable-shortcuts system for top-level app actions — menus, toolbar, per-dialog OK/Cancel, and making already-hardcoded elements rebindable. It does not touch editperson, displaytabs, buttontab, or grampstab at all.
Does that answer your question?
The only way I can add a new event to the person dialog using only the keyboard is [Tab] 12 times then [Insert]. This isn’t useful. Does your reply imply there is a better way? If so, please clarify, if not, does your new code deliver a btter way?
Thank you for the follow-up details. So, the original code update would not help, because there was no key binding that does what you need; it only allows remapping existing key bindings.
But while I’m working on this, I thought about your issue. Having a special key for adding a new event would be handy, but what if you wanted to add new media? New address? New…?
But, we can add a new keystroke to select the tabs (ALt+1, Atl+2, Alt+3, …) and then press INSERT. So reducing it to 2 keys.
