summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-05-14 21:49:10 +0000
committerMatthias Clasen <mclasen@redhat.com>2023-05-14 21:49:10 +0000
commit18b8baaf25e9bcb7d0d7ec480f8d673ad7d31309 (patch)
treef5fa1cca7e32fafb9814e442bf78f3c01de99bb1 /docs
parent951b448e90e5ce0b1bc61381729ef3dd713dcaa9 (diff)
parentc01be6cac74ee4e3f8a916b2c562578b4b38647f (diff)
downloadgtk+-18b8baaf25e9bcb7d0d7ec480f8d673ad7d31309.tar.gz
Merge branch 'input-doc-fixes' into 'main'
GTK reference docs: Some fixes See merge request GNOME/gtk!5969
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/actions.md4
-rw-r--r--docs/reference/gtk/input-handling.md29
2 files changed, 18 insertions, 15 deletions
diff --git a/docs/reference/gtk/actions.md b/docs/reference/gtk/actions.md
index 2482c5c0b9..40057644bf 100644
--- a/docs/reference/gtk/actions.md
+++ b/docs/reference/gtk/actions.md
@@ -220,6 +220,6 @@ clipboard.cut, clipboard.copy, clipboard.paste
selection.delete, selection.select-all
: Selection operations on entries, text view and labels
-color.select, color.customize:
+color.select, color.customize
: Operate on colors in a `GtkColorChooserWidget`. These actions are
- unusual in that they have the non-trivial parameter type (dddd):
+ unusual in that they have the non-trivial parameter type (dddd).
diff --git a/docs/reference/gtk/input-handling.md b/docs/reference/gtk/input-handling.md
index 59983f092d..45b4c41416 100644
--- a/docs/reference/gtk/input-handling.md
+++ b/docs/reference/gtk/input-handling.md
@@ -103,14 +103,15 @@ fields, but e.g. buttons can take the focus too.
Input widgets can be given the focus by clicking on them, but focus
can also be moved around with certain key events (this is known as
-“keyboard navigation”). GTK reserves the <kbd>Tab</kbd> key to move the focus
-to the next location, and <kbd>Shift</kbd>+<kbd>Tab</kbd> to move it back to the previous
-one. In addition many containers allow “directional navigation” with
-the arrow keys.
+“keyboard navigation”).
+GTK reserves the <kbd>Tab</kbd> key to move the focus to the next location,
+and <kbd>Shift</kbd>+<kbd>Tab</kbd> to move it back to the previous one.
+In addition many containers allow “directional navigation” with the arrow keys.
-Many widgets can be “activated” to trigger and action. E.g., you can
-activate a button or switch by clicking on them, but you can also
-activate them with the keyboard, by using the <kbd>Enter</kbd> or <kbd>␣</kbd> keys.
+Many widgets can be “activated” to trigger and action.
+E.g., you can activate a button or switch by clicking on them,
+but you can also activate them with the keyboard,
+by using the <kbd>Enter</kbd> or <kbd>Space</kbd> keys.
Apart from keyboard navigation, activation and directly typing into
entries or text views, GTK widgets can use key events for activating
@@ -121,15 +122,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.
@@ -208,4 +211,4 @@ sequence, so setting the state on one does transfer the state to
the others. They also are mutually exclusive, within a widget
where may be only one gesture group claiming a given sequence.
If another gesture group claims later that same sequence, the
-first group will deny the sequence:
+first group will deny the sequence.