summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFeRD (Frank Dana) <ferdnyc@gmail.com>2023-05-14 16:20:33 -0400
committerFeRD (Frank Dana) <ferdnyc@gmail.com>2023-05-14 16:20:33 -0400
commit59acec21d471de35cb04c88aa327941d92dfc306 (patch)
tree4a8711f4456114de57609dcb301700fc0c2ea757 /docs
parent9b1026886b86809055286413bdc4023df0b5896b (diff)
downloadgtk+-59acec21d471de35cb04c88aa327941d92dfc306.tar.gz
docs/input-handling: A few more <kbd> wrappings
- Format a few missed keypresses/combos using <kbd> - Switch to semantic newlines for those (paragraphs, bullet points)
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/input-handling.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/reference/gtk/input-handling.md b/docs/reference/gtk/input-handling.md
index df92aa281a..0e724935dc 100644
--- a/docs/reference/gtk/input-handling.md
+++ b/docs/reference/gtk/input-handling.md
@@ -121,15 +121,17 @@ GTK has traditionally supported different kinds of shortcuts:
- Accelerators are any other shortcuts that can be activated regardless
of where the focus is, and typically trigger global actions, such as
- Ctrl-Q to quit an application.
-- Mnemonics are usually triggered using Alt as a modifier for a letter.
+ <kbd>Ctrl</kbd>+<kbd>Q</kbd> to quit an application.
+- Mnemonics are usually triggered using <kbd>Alt</kbd>
+ as a modifier for a letter.
They are used in places where a label is associated with a control,
and are indicated by underlining the letter in the label. As a special
case, inside menus (i.e. inside `GtkPopoverMenu`), mnemonics can be
triggered without the modifier.
-- Key bindings are specific to individual widgets, such as Ctrl-C or
- Ctrl-V in an entry copy to or paste from the clipboard. They are only
- triggered when the widget has focus.
+- Key bindings are specific to individual widgets,
+ such as <kbd>Ctrl</kbd>+<kbd>C</kbd> or <kbd>Ctrl</kbd>+<kbd>V</kbd>
+ in an entry copy to or paste from the clipboard.
+ They are only triggered when the widget has focus.
GTK handles accelerators and mnemonics in a global scope, during the
capture phase, and key bindings locally, during the target phase.