From b35212c88cd057377f1086d23144b1cfcd6c5847 Mon Sep 17 00:00:00 2001 From: Victoria Lacroix Date: Sun, 6 Aug 2023 11:08:35 -0400 Subject: [PATCH] gcal-application: Ctrl+R to synchronize calendars In !332, there was some difficulty with having two accelerators for the "Synchronize calendars" action, so the Ctrl+R accelerator was left out. This commit adds the Ctrl+R accelerator to gcal-window.ui by specifying it before the F5 accelerator. The result is that only F5 is shown as an accelerator in the overlay menu, but Ctrl+R still works. Ctrl+R was also added to help-overlay.ui, displayed alongside F5. Fixes #1052 --- src/gui/gcal-window.ui | 6 ++++++ src/gui/gtk/help-overlay.ui | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/gcal-window.ui b/src/gui/gcal-window.ui index c58662874..50a67aeca 100644 --- a/src/gui/gcal-window.ui +++ b/src/gui/gcal-window.ui @@ -98,6 +98,12 @@ action(win.show-calendars) + + + <Ctrl>r + action(app.sync) + + F5 diff --git a/src/gui/gtk/help-overlay.ui b/src/gui/gtk/help-overlay.ui index 6965f8864..ea4fc9d6e 100644 --- a/src/gui/gtk/help-overlay.ui +++ b/src/gui/gtk/help-overlay.ui @@ -24,7 +24,7 @@ Synchronize calendars - F5 + F5 <Ctrl>r -- GitLab