Update MainWindow shortcuts to be keybinding signal based
Use keybinding ("action") signals and a GtkBindingSet to hook up most
of MainWindow's actions to keyboard shortcuts, rather than use
the application to do so. Remove single-key shortcuts, and update
shortcuts used to avoid collisions. Replace "focus conversation list"
action with general navigation between panes.
🚨 Remove MainWindow hack that enabled single key shortcuts to work 🚨
This commit is contained in:
parent
e11e2bd279
commit
fb1439264a
2 changed files with 316 additions and 134 deletions
|
|
@ -71,14 +71,14 @@
|
|||
<object class="GtkShortcutsShortcut">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes" context="shortcut window">Label conversation</property>
|
||||
<property name="accelerator"><primary>L</property>
|
||||
<property name="accelerator"><primary>B</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkShortcutsShortcut">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes" context="shortcut window">Trash conversation</property>
|
||||
<property name="accelerator">Delete Back</property>
|
||||
<property name="accelerator">Delete BackSpace</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
|
|
@ -93,7 +93,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="title"
|
||||
translatable="yes" context="shortcut window">Delete conversation</property>
|
||||
<property name="accelerator"><Shift>Delete <Shift>Back</property>
|
||||
<property name="accelerator"><Shift>Delete <Shift>BackSpace</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
|
@ -231,35 +231,28 @@
|
|||
<object class="GtkShortcutsShortcut">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes" context="shortcut window">Focus the next pane</property>
|
||||
<property name="accelerator">F6</property>
|
||||
<property name="accelerator"><Alt>Right</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkShortcutsShortcut">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes" context="shortcut window">Focus the previous pane</property>
|
||||
<property name="accelerator"><Shift>F6</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkShortcutsShortcut">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes" context="shortcut window">Focus the conversation list</property>
|
||||
<property name="accelerator"><primary>B</property>
|
||||
<property name="accelerator"><Alt>Left</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkShortcutsShortcut">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes" context="shortcut window">Select the conversation down</property>
|
||||
<property name="accelerator"><primary>bracketright J</property>
|
||||
<property name="accelerator"><primary>period</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkShortcutsShortcut">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes" context="shortcut window">Select the conversation up</property>
|
||||
<property name="accelerator"><primary>bracketleft K</property>
|
||||
<property name="accelerator"><primary>comma</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue