[gnome-settings-daemon] media-keys: Add static mapping for XF86RotationLockToggle
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Add static mapping for XF86RotationLockToggle
- Date: Mon, 6 Jul 2020 08:31:55 +0000 (UTC)
commit a9cc9bd179a9b0c00bb94c3f941a15e07b65d926
Author: Hans de Goede <hdegoede redhat com>
Date: Sat Jul 4 17:49:36 2020 +0200
media-keys: Add static mapping for XF86RotationLockToggle
Some tablets have a dedicated button for toggling accelerometer based
rotation on/off. A while ago the XF86RotationLockToggle keysym was added
for this and this has been hooked up through all the plumbing layers
(xkeyboard-config, libxkb-common) now.
Add a static mapping for this, to make these buttons work ootb.
This has been tested with such a button on a Lenovo Thinkpad 10 tablet.
data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in
b/data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in
index 123d315c..fb0c85c6 100644
--- a/data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in
+++ b/data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in
@@ -672,7 +672,7 @@
</key>
<key name="rotate-video-lock-static" type="as">
- <default>['<Super>o']</default>
+ <default>['<Super>o', 'XF86RotationLockToggle']</default>
<summary>Toggle automatic screen orientation</summary>
<description>Static binding to toggle automatic screen orientation.</description>
</key>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]