Skip to content

Commit

Permalink
Add support for tabs in keyboard shortcuts
Browse files Browse the repository at this point in the history
Also changed the default keybinding for next/prev tab. Had to rewrite half of the keybindings code to make this work, but the incidental refactor along the way was pretty good too.
  • Loading branch information
Davidy22 authored and gsemet committed Sep 16, 2021
1 parent f899ea6 commit 6af0a95
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 352 deletions.
4 changes: 2 additions & 2 deletions guake/data/org.guake.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,12 @@
<description>Move the current tab to the right</description>
</key>
<key name="previous-tab" type="s">
<default>'&lt;Control&gt;Page_Up'</default>
<default>'&lt;Control&gt;&lt;Shift&gt;Tab'</default>
<summary>Previous tab.</summary>
<description>Shows the previous tab.</description>
</key>
<key name="next-tab" type="s">
<default>'&lt;Control&gt;Page_Down'</default>
<default>'&lt;Control&gt;Tab'</default>
<summary>Next tab.</summary>
<description>Shows the next tab.</description>
</key>
Expand Down
1 change: 1 addition & 0 deletions guake/guake_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def load_schema():
try_to_compile_glib_schemas()
schema_source = load_schema()
self.settings = Settings(schema_source)
self.accel_group = None

if (
"schema-version" not in self.settings.general.keys()
Expand Down
Loading

0 comments on commit 6af0a95

Please sign in to comment.