[meld] Add shortcut for open externally action (#141)



commit b54bc3f4600a996c224c1ceb5fddb796eb18b672
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Thu Aug 11 07:37:49 2022 +1000

    Add shortcut for open externally action (#141)

 meld/accelerators.py               | 1 +
 meld/resources/gtk/help-overlay.ui | 7 +++++++
 2 files changed, 8 insertions(+)
---
diff --git a/meld/accelerators.py b/meld/accelerators.py
index 1d2b9fe2..b5ddf3d8 100644
--- a/meld/accelerators.py
+++ b/meld/accelerators.py
@@ -13,6 +13,7 @@ VIEW_ACCELERATORS: Dict[str, Union[str, Sequence[str]]] = {
     # Overridden in CSS
     'view.next-change': ('<Alt>Down', '<Alt>KP_Down', '<Primary>D'),
     'view.next-pane': '<Alt>Page_Down',
+    'view.open-external': '<Primary><Shift>O',
     # Overridden in CSS
     'view.previous-change': ('<Alt>Up', '<Alt>KP_Up', '<Primary>E'),
     'view.previous-pane': '<Alt>Page_Up',
diff --git a/meld/resources/gtk/help-overlay.ui b/meld/resources/gtk/help-overlay.ui
index 36e2ea79..b3bb1302 100644
--- a/meld/resources/gtk/help-overlay.ui
+++ b/meld/resources/gtk/help-overlay.ui
@@ -47,6 +47,13 @@
                 <property name="title" translatable="yes" context="shortcut window">Refresh 
comparison</property>
               </object>
             </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="accelerator">&lt;primary&gt;&lt;shift&gt;O</property>
+                <property name="title" translatable="yes" context="shortcut window">Open 
externally</property>
+              </object>
+            </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">True</property>


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