[metacity] Add support for switch-applications keybindings
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] Add support for switch-applications keybindings
- Date: Thu, 30 May 2013 17:09:33 +0000 (UTC)
commit 67165f516f87adc1b20f3339294299565f6db56d
Author: Dmitry Shachnev <mitya57 ubuntu com>
Date: Thu Apr 11 18:34:49 2013 +0400
Add support for switch-applications keybindings
In gsettings-desktop-schemas 3.8, there is not shortcut for
switch-windows, and Alt+Tab points to switch-applications by
default.
As we do not support switching applications, but want Alt+Tab to
work, just bind switch-applications to the same action as
switch-windows is currently bound to (and the same for -backward).
https://bugzilla.gnome.org/show_bug.cgi?id=697801
src/50-metacity-navigation.xml.in | 3 +++
src/include/all-keybindings.h | 6 ++++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/50-metacity-navigation.xml.in b/src/50-metacity-navigation.xml.in
index fc0b457..597cc47 100644
--- a/src/50-metacity-navigation.xml.in
+++ b/src/50-metacity-navigation.xml.in
@@ -30,6 +30,9 @@
_description="Move window one workspace down" />
<KeyListEntry name="switch-windows"
+ _description="Switch windows"/>
+
+ <KeyListEntry name="switch-applications"
_description="Switch applications"/>
<KeyListEntry name="switch-group"
diff --git a/src/include/all-keybindings.h b/src/include/all-keybindings.h
index f1aa02d..a930726 100644
--- a/src/include/all-keybindings.h
+++ b/src/include/all-keybindings.h
@@ -129,6 +129,12 @@ keybind (switch-group-backward, handle_switch, META_TAB_LIST_GROUP,
keybind (switch-windows, handle_switch, META_TAB_LIST_NORMAL, BINDING_REVERSES)
keybind (switch-windows-backward, handle_switch, META_TAB_LIST_NORMAL,
REVERSES_AND_REVERSED)
+/* We do not support switching applications, so we map these to switching
+ * windows */
+keybind (switch-applications, handle_switch, META_TAB_LIST_NORMAL,
+ BINDING_REVERSES)
+keybind (switch-applications-backward, handle_switch, META_TAB_LIST_NORMAL,
+ REVERSES_AND_REVERSED)
keybind (switch-panels, handle_switch, META_TAB_LIST_DOCKS, BINDING_REVERSES)
keybind (switch-panels-backward, handle_switch, META_TAB_LIST_DOCKS,
REVERSES_AND_REVERSED)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]