[libdazzle] shortcuts: activate mnemonics for the window
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [libdazzle] shortcuts: activate mnemonics for the window
- Date: Wed, 10 Jan 2018 21:42:23 +0000 (UTC)
commit 1d2968144b63bffa11471a83db275230340542f7
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 10 13:42:11 2018 -0800
    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.
 src/shortcuts/dzl-shortcut-manager.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/shortcuts/dzl-shortcut-manager.c b/src/shortcuts/dzl-shortcut-manager.c
index d59733d..dbd1ae7 100644
--- a/src/shortcuts/dzl-shortcut-manager.c
+++ b/src/shortcuts/dzl-shortcut-manager.c
@@ -824,6 +824,11 @@ dzl_shortcut_manager_run_fallbacks (DzlShortcutManager     *self,
       if (gtk_bindings_activate (G_OBJECT (toplevel), keyval, state))
         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
        * can be activated directly.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]