[libadwaita] docs: Use kbd for shortcuts



commit c0dbb5172caf2c983f8f88bf0e68b7b045b293ba
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Sat Jan 1 17:34:32 2022 +0100

    docs: Use kbd for shortcuts

 src/adw-leaflet.c            | 12 ++++++------
 src/adw-preferences-window.c |  3 ++-
 src/adw-tab-view.c           | 29 +++++++++++++++++------------
 3 files changed, 25 insertions(+), 19 deletions(-)
---
diff --git a/src/adw-leaflet.c b/src/adw-leaflet.c
index ea46dc5d..b42896a3 100644
--- a/src/adw-leaflet.c
+++ b/src/adw-leaflet.c
@@ -2312,9 +2312,9 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
    * - Horizontal scrolling on touchpads (usually two-finger swipe)
    * - Back/forward mouse buttons
    *
-   * The keyboard back/forward keys are also supported, as well as the Alt+←
-   * shortcut for horizontal orientation, or Alt+↑ for vertical
-   * orientation.
+   * The keyboard back/forward keys are also supported, as well as the
+   * <kbd>Alt</kbd>+<kbd>←</kbd> shortcut for horizontal orientation, or
+   * <kbd>Alt</kbd>+<kbd>↑</kbd> for vertical orientation.
    *
    * If the orientation is horizontal, for right-to-left locales, gestures and
    * shortcuts are reversed.
@@ -2341,9 +2341,9 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
    * - Horizontal scrolling on touchpads (usually two-finger swipe)
    * - Back/forward mouse buttons
    *
-   * The keyboard back/forward keys are also supported, as well as the Alt+→
-   * shortcut for horizontal orientation, or Alt+↓ for vertical
-   * orientation.
+   * The keyboard back/forward keys are also supported, as well as the
+   * <kbd>Alt</kbd>+<kbd>→</kbd> shortcut for horizontal orientation, or
+   * <kbd>Alt</kbd>+<kbd>↓</kbd> for vertical orientation.
    *
    * If the orientation is horizontal, for right-to-left locales, gestures and
    * shortcuts are reversed.
diff --git a/src/adw-preferences-window.c b/src/adw-preferences-window.c
index 40f86076..0fb970d0 100644
--- a/src/adw-preferences-window.c
+++ b/src/adw-preferences-window.c
@@ -575,7 +575,8 @@ adw_preferences_window_class_init (AdwPreferencesWindowClass *klass)
    * - Horizontal scrolling on touchpads (usually two-finger swipe)
    * - Back mouse button
    *
-   * The keyboard back key is also supported, as well as the Alt+← shortcut.
+   * The keyboard back key is also supported, as well as the
+   * <kbd>Alt</kbd>+<kbd>←</kbd> shortcut.
    *
    * For right-to-left locales, gestures and shortcuts are reversed.
    *
diff --git a/src/adw-tab-view.c b/src/adw-tab-view.c
index 07c20216..e0032b2d 100644
--- a/src/adw-tab-view.c
+++ b/src/adw-tab-view.c
@@ -41,18 +41,23 @@ static GSList *tab_view_list;
  *
  * `AdwTabView` adds the following shortcuts in the managed scope:
  *
- * * Ctrl+Page Up - switch to the previous page
- * * Ctrl+Page Down - switch to the next page
- * * Ctrl+Home - switch to the first page
- * * Ctrl+End - switch to the last page
- * * Ctrl+Shift+Page Up - move the current page backward
- * * Ctrl+Shift+Page Down - move the current page forward
- * * Ctrl+Shift+Home - move the current page at the start
- * * Ctrl+Shift+End - move the current page at the end
- * * Ctrl+Tab - switch to the next page, with looping
- * * Ctrl+Shift+Tab - switch to the previous page, with looping
- * * Alt+1-9 - switch to pages 1-9
- * * Alt+0 - switch to page 10
+ * * <kbd>Ctrl</kbd>+<kbd>Page Up</kbd> - switch to the previous page
+ * * <kbd>Ctrl</kbd>+<kbd>Page Down</kbd> - switch to the next page
+ * * <kbd>Ctrl</kbd>+<kbd>Home</kbd> - switch to the first page
+ * * <kbd>Ctrl</kbd>+<kbd>End</kbd> - switch to the last page
+ * * <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Page Up</kbd> - move the current page
+ *     backward
+ * * <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Page Down</kbd> - move the current
+ *     page forward
+ * * <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Home</kbd> - move the current page at
+ *     the start
+ * * <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>End</kbd> - move the current page at
+ *      the end
+ * * <kbd>Ctrl</kbd>+<kbd>Tab</kbd> - switch to the next page, with looping
+ * * <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Tab</kbd> - switch to the previous
+ *     page, with looping
+ * * <kbd>Alt</kbd>+<kbd>1</kbd>⋯<kbd>9</kbd> - switch to pages 1-9
+ * * <kbd>Alt</kbd>+<kbd>0</kbd> - switch to page 10
  *
  * ## CSS nodes
  *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]