Add secondary `Ctrl+R` keyboard shortcut for "Synchronize Calendars"
If dual keyboard shortcuts can't make it in time for GNOME 45's UI freeze, the suggestion is to implement F5
only first through the .ui XML file approach (issue #1046 (closed)) and later figure out (here) how to implement the alternative Ctrl+R
shortcut in addition to it, for users who do not a F keys row on their keyboard.
There might be a way to do it entirely in .ui XML, or it might only be possible through method calls in C code, I'm not sure. Examples below.
In nautilus-window.c, their dual shortcuts are achieved with this single line of code:
/* Special case reload, since users are used to use two shortcuts instead of one */
nautilus_application_set_accelerators (app, "win.reload", ACCELS ("F5", "<ctrl>r", "Refresh", "Reload"));
…and the result in the UI is that only the F5
shortcut is shown in the meatballs menu, which is what I'd want here too.
https://github.com/GeopJr/Tuba/blob/HEAD/src/Application.vala#L155 also takes the same approach in Vala:
set_accels_for_action ("app.refresh", {"<Ctrl>R", "F5"});