gsettings-desktop-schemas/0001-schemas-add-a-scroll-button-locking-to-the-trackball.patch

34 lines
1.6 KiB
Diff

From 1e58ab07356c4c44b814768fca56e2ce951617d0 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue, 8 Sep 2020 10:21:53 +1000
Subject: [PATCH] schemas: add a scroll button locking to the trackball
Where enabled, the first click of the scroll button sets the button logically
down, the second click sets the button logically up.
This is an accessibility feature, it doesn't require users to keep holding the
button down while scrolling which is hard or impossible for some users.
---
schemas/org.gnome.desktop.peripherals.gschema.xml.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/schemas/org.gnome.desktop.peripherals.gschema.xml.in b/schemas/org.gnome.desktop.peripherals.gschema.xml.in
index 7ee3882..0c30c8a 100644
--- a/schemas/org.gnome.desktop.peripherals.gschema.xml.in
+++ b/schemas/org.gnome.desktop.peripherals.gschema.xml.in
@@ -210,6 +210,11 @@
<range min="0" max="24"/>
<summary>Mouse wheel emulation button. 0 to disable the feature.</summary>
</key>
+ <key name="scroll-wheel-emulation-button-lock" type="b">
+ <default>false</default>
+ <summary>Mouse wheel emulation button lock</summary>
+ <description>Set this to TRUE to enable button locking for the wheel emulation button. If enabled, the first click of the button enables scrolling, the second click disables scrolling again.</description>
+ </key>
<key name="accel-profile" enum="org.gnome.desktop.GDesktopPointerAccelProfile">
<default>'default'</default>
<summary>Acceleration profile</summary>
--
2.29.2