[gnome-builder] shortcuts: steal F7 for build commands



commit 795f79765a837c7f5683cfc5938514589a91c0a4
Author: Christian Hergert <chergert redhat com>
Date:   Fri Mar 5 17:30:05 2021 -0800

    shortcuts: steal F7 for build commands
    
    Fixes #1412

 src/plugins/buildui/gbp-buildui-workspace-addin.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-workspace-addin.c 
b/src/plugins/buildui/gbp-buildui-workspace-addin.c
index 9263c6a91..a636fa253 100644
--- a/src/plugins/buildui/gbp-buildui-workspace-addin.c
+++ b/src/plugins/buildui/gbp-buildui-workspace-addin.c
@@ -263,12 +263,12 @@ gbp_buildui_workspace_addin_load (IdeWorkspaceAddin *addin,
   dzl_shortcut_controller_add_command_action (shortcuts,
                                               "org.gnome.builder.buildui.build",
                                               "<Control>F7",
-                                              DZL_SHORTCUT_PHASE_GLOBAL,
+                                              DZL_SHORTCUT_PHASE_GLOBAL | DZL_SHORTCUT_PHASE_CAPTURE,
                                               "build-manager.build");
   dzl_shortcut_controller_add_command_action (shortcuts,
                                               "org.gnome.builder.buildui.rebuild",
                                               "<Control><Shift>F7",
-                                              DZL_SHORTCUT_PHASE_GLOBAL,
+                                              DZL_SHORTCUT_PHASE_GLOBAL | DZL_SHORTCUT_PHASE_CAPTURE,
                                               "build-manager.rebuild");
 
   headerbar = ide_workspace_get_header_bar (workspace);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]