togglebutton: Fix mnemonic activation

We want to grab the focus when we're focusable, so
look at the focusable property.
This commit is contained in:
Matthias Clasen 2021-05-23 10:26:21 -04:00
parent 882893259d
commit 105b12f807

View File

@ -184,7 +184,7 @@ gtk_toggle_button_mnemonic_activate (GtkWidget *widget,
* gtk_widget_real_mnemonic_activate() in order to focus the widget even
* if there is no mnemonic conflict.
*/
if (gtk_widget_get_can_focus (widget))
if (gtk_widget_get_focusable (widget))
gtk_widget_grab_focus (widget);
if (!group_cycling)