summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-12-17 19:43:38 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-12-17 19:43:38 +0000
commit3f56e8191f546ac88938363fbe63b1811bf5651f (patch)
tree011ecb5e44850901f137db7820d582d2b25a1bb1 /docs
parentec94ec0286041c16d6df7b496b0760a0ae0885ba (diff)
parentbf4c3dc2c512cca87ddc3b1223764ceff73c7d89 (diff)
downloadgtk+-3f56e8191f546ac88938363fbe63b1811bf5651f.tar.gz
Merge branch 'shortcuts' into 'master'
docs: Add separation between kinds of shortcuts in Keyboard input See merge request GNOME/gtk!2964
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/input-handling.md27
1 files changed, 12 insertions, 15 deletions
diff --git a/docs/reference/gtk/input-handling.md b/docs/reference/gtk/input-handling.md
index e409a2dfd6..4685d51aa5 100644
--- a/docs/reference/gtk/input-handling.md
+++ b/docs/reference/gtk/input-handling.md
@@ -119,21 +119,18 @@ around or to activate a widget that does not currently have the focus.
GTK has traditionally supported different kinds of shortcuts:
-Accelerators
- : 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.
-Mnmemonics
- : Mnemonics are usually triggered using Alt 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
- : 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.
-
+- 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.
+ 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.
+
GTK handles accelerators and mnemonics in a global scope, during the
capture phase, and key bindings locally, during the target phase.