window: Add mnemonics to today, week and month labels

Users should be able to navigate through the interface ideally using
only the keyboard, as specified in the GNOME Human Interface Guidelines.
This however is currently possible in the window page with shortcuts
when it comes to switching among week and month views, and jumping to
today's date. It is also interesting to have access keys attached to
such labels, so that the user does not need to look for the keyboard
shortcuts.

Using the first letter for each of the labels as mnemonics suffices in
this case, since there is no conflict, none of them is a thin letter nor
has descenders, and they are easy to remember.
This commit is contained in:
Henrique F. Simões
2022-11-20 19:54:52 +00:00
committed by Georges Basile Stavracas Neto
parent 1ba749ee59
commit e6b3e72e7c
+8 -4
View File
@@ -151,7 +151,8 @@
<property name="action-name">win.today</property>
<property name="child">
<object class="AdwButtonContent">
<property name="label" translatable="yes">Today</property>
<property name="label" translatable="yes">_Today</property>
<property name="use-underline">True</property>
<property name="icon-name">calendar-today-symbolic</property>
</object>
</property>
@@ -183,7 +184,8 @@
<property name="action-name">win.today</property>
<property name="child">
<object class="AdwButtonContent">
<property name="label" translatable="yes">Today</property>
<property name="label" translatable="yes">_Today</property>
<property name="use-underline">True</property>
<property name="icon-name">calendar-today-symbolic</property>
</object>
</property>
@@ -216,7 +218,8 @@
<child>
<object class="AdwViewStackPage">
<property name="name">week</property>
<property name="title" translatable="yes">Week</property>
<property name="title" translatable="yes">_Week</property>
<property name="use-underline">True</property>
<property name="icon_name">calendar-week-symbolic</property>
<property name="child">
<object class="GcalWeekView" id="week_view">
@@ -230,7 +233,8 @@
<child>
<object class="AdwViewStackPage">
<property name="name">month</property>
<property name="title" translatable="yes">Month</property>
<property name="title" translatable="yes">_Month</property>
<property name="use-underline">True</property>
<property name="icon_name">calendar-month-symbolic</property>
<property name="child">
<object class="GcalMonthView" id="month_view">