mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
gtkbindings: Clarify that widgets need has-focus for bindings to work
https://bugzilla.gnome.org/show_bug.cgi?id=770242
This commit is contained in:
parent
a6409458f0
commit
92a95c7de7
@ -47,6 +47,12 @@
|
|||||||
* with high key binding configurability which requires no application
|
* with high key binding configurability which requires no application
|
||||||
* or toolkit side changes.
|
* or toolkit side changes.
|
||||||
*
|
*
|
||||||
|
* In order for bindings to work in a custom widget implementation, the
|
||||||
|
* widget’s #GtkWidget:can-focus and #GtkWidget:has-focus properties
|
||||||
|
* must both be true. For example, by calling gtk_widget_set_can_focus()
|
||||||
|
* in the widget’s initialisation function; and by calling
|
||||||
|
* gtk_widget_grab_focus() when the widget is clicked.
|
||||||
|
*
|
||||||
* # Installing a key binding
|
* # Installing a key binding
|
||||||
*
|
*
|
||||||
* A CSS file binding consists of a “binding-set” definition and a match
|
* A CSS file binding consists of a “binding-set” definition and a match
|
||||||
|
Loading…
Reference in New Issue
Block a user