[gnome-shell-extensions] screenshot-window-sizer: Add explicit keybinding for backward cycling
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] screenshot-window-sizer: Add explicit keybinding for backward cycling
- Date: Wed, 5 Jul 2017 15:06:51 +0000 (UTC)
commit 74643a62d104924157dabf29554a0912819b7369
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jun 22 08:57:47 2017 +0200
screenshot-window-sizer: Add explicit keybinding for backward cycling
The REVERSES flag was removed from Meta.KeyBindingFlags a while ago, as
gnome-control-center doesn't recognize it and the corresponding "magic"
shift handling. That is, nowadays reversible keybindings need to
provide an explicit reversed binding.
https://bugzilla.gnome.org/show_bug.cgi?id=784079
extensions/screenshot-window-sizer/extension.js | 9 ++++++++-
....extensions.screenshot-window-sizer.gschema.xml | 4 ++++
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/extensions/screenshot-window-sizer/extension.js b/extensions/screenshot-window-sizer/extension.js
index 31f1375..e9f19da 100644
--- a/extensions/screenshot-window-sizer/extension.js
+++ b/extensions/screenshot-window-sizer/extension.js
@@ -147,11 +147,18 @@ function init() {
function enable() {
Main.wm.addKeybinding('cycle-screenshot-sizes',
Convenience.getSettings(),
- Meta.KeyBindingFlags.PER_WINDOW | Meta.KeyBindingFlags.REVERSES,
+ Meta.KeyBindingFlags.PER_WINDOW,
+ Shell.ActionMode.NORMAL,
+ cycleScreenshotSizes);
+ Main.wm.addKeybinding('cycle-screenshot-sizes-backward',
+ Convenience.getSettings(),
+ Meta.KeyBindingFlags.PER_WINDOW |
+ Meta.KeyBindingFlags.IS_REVERSED,
Shell.ActionMode.NORMAL,
cycleScreenshotSizes);
}
function disable() {
Main.wm.removeKeybinding('cycle-screenshot-sizes');
+ Main.wm.removeKeybinding('cycle-screenshot-sizes-backward');
}
diff --git
a/extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml
b/extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml
index ae8009e..8103d33 100644
--- a/extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml
+++ b/extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml
@@ -6,5 +6,9 @@
<default><![CDATA[['<Alt><Control>s']]]></default>
<summary>Cycle Screenshot Sizes</summary>
</key>
+ <key type="as" name="cycle-screenshot-sizes-backward">
+ <default><![CDATA[['<Shift><Alt><Control>s']]]></default>
+ <summary>Cycle Screenshot Sizes Backward</summary>
+ </key>
</schema>
</schemalist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]