summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-02-19 18:31:12 +0100
committerBenjamin Berg <bberg@redhat.com>2018-03-16 14:42:02 +0100
commitf545950fe390134781eedacf36b9fd9a5d08ccbb (patch)
tree1d5d394d292067f4cdd1588edafeedbfb2ca561e
parentf227cc6e11efd8d3b8a6e617b129da318b347e00 (diff)
downloadgnome-settings-daemon-f545950fe390134781eedacf36b9fd9a5d08ccbb.tar.gz
media-keys: Add mapping for Ctrl + Super + TouchpadToggle
Some budget laptops send Ctrl + Super + custom-scancode when their touchpad-toggle hotkey (Fn + something) gets pressed. hwdb will map the custom-scancode to TouchpadToggle, but we need to deal with the Ctrl + Super in the media-keys plugin, add a mapping for this. https://bugzilla.gnome.org/show_bug.cgi?id=793610
-rw-r--r--plugins/media-keys/shortcuts-list.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/media-keys/shortcuts-list.h b/plugins/media-keys/shortcuts-list.h
index a84a2a44..29f5194e 100644
--- a/plugins/media-keys/shortcuts-list.h
+++ b/plugins/media-keys/shortcuts-list.h
@@ -43,6 +43,7 @@ static struct {
ShellActionMode modes;
} media_keys[] = {
{ TOUCHPAD_KEY, NULL, N_("Touchpad toggle") ,"XF86TouchpadToggle", SHELL_ACTION_MODE_ALL },
+ { TOUCHPAD_KEY, NULL, N_("Touchpad toggle") ,"<Ctrl><Super>XF86TouchpadToggle", SHELL_ACTION_MODE_ALL },
{ TOUCHPAD_ON_KEY, NULL, N_("Touchpad On"), "XF86TouchpadOn", SHELL_ACTION_MODE_ALL },
{ TOUCHPAD_OFF_KEY, NULL, N_("Touchpad Off"), "XF86TouchpadOff", SHELL_ACTION_MODE_ALL },
{ MUTE_KEY, "volume-mute", NULL, NULL, SHELL_ACTION_MODE_ALL },