Commit 1d296814 authored by Christian Hergert's avatar Christian Hergert

shortcuts: activate mnemonics for the window

This checks to see if we have a mnemonic visible in the fallback activation
path. This fixes an issue where mnemonics were visible but not activated.
parent 6ce97f9f
...@@ -824,6 +824,11 @@ dzl_shortcut_manager_run_fallbacks (DzlShortcutManager *self, ...@@ -824,6 +824,11 @@ dzl_shortcut_manager_run_fallbacks (DzlShortcutManager *self,
if (gtk_bindings_activate (G_OBJECT (toplevel), keyval, state)) if (gtk_bindings_activate (G_OBJECT (toplevel), keyval, state))
return TRUE; return TRUE;
/* See if there is a mnemonic active that should be activated */
if (GTK_IS_WINDOW (toplevel) &&
gtk_window_mnemonic_activate (GTK_WINDOW (toplevel), keyval, state))
return TRUE;
/* /*
* See if we have something defined for this theme that * See if we have something defined for this theme that
* can be activated directly. * can be activated directly.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment