Package: gtk
Function gtk:widget-keynav-failed
Lambda Listgtk:widget-keynav-failed (widget direction) ArgumentsReturn ValueTrue if stopping keyboard navigation is fine, false if the
emitting widget should try to handle the keyboard navigation attempt in its parent container(s). Details
This function should be called whenever keyboard navigation within a single
widget hits a boundary. The function emits the "keynav-failed" signal on the widget and its
return value should be interpreted in a way similar to the return value of the gtk:widget-child-focus function:
Whenever the default handler returns true, it also calls the gtk:widget-error-bell function to notify the user of the failed keyboard navigation. A use case for providing an own implementation of "keynav-failed", either by connecting to it or by overriding it, would be a row of gtk:entry widgets where the user should be able to navigate the entire row with the cursor keys, such as user interfaces that require entering license keys. | See also |
#2023-3-8