kcms/keyboard: Increase maximum repeat rate

The current maximum configurable keyboard auto-repeat rate of 100 is
too conservative; change it to 200.

For me personally, repeat of about 130/s is ideal. Increasing much
beyond 130 is too fast for me (too hard to move cursor short distances).
I set the maximum to 200 on the assumption that there are people with
much faster reflexes than me, but 200 "ought to be enough for anybody".

BUG: 488802
FIXED-IN: 6.2.0
This commit is contained in:
Vladimir Brik 2024-06-26 22:44:18 +00:00 committed by Nate Graham
parent eb6d55a718
commit 4dc8b2ef80
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
<tooltip>If supported, this option allows you to set the rate at which keycodes are generated while a key is pressed.</tooltip>
<default>25.0</default>
<min>0.2</min>
<max>100</max>
<max>200</max>
</entry>
</group>
</kcfg>

View file

@ -202,7 +202,7 @@ Kirigami.FormLayout {
Layout.preferredWidth: Kirigami.Units.gridUnit * 15
from: 20
to: 10000
to: 20000
value: kcm.miscSettings.repeatRate * 100
onMoved: kcm.miscSettings.repeatRate = value / 100
@ -216,7 +216,7 @@ Kirigami.FormLayout {
Layout.preferredWidth: Kirigami.Units.gridUnit * 6
from: 20
to: 10000
to: 20000
stepSize: 500
value: Math.round(kcm.miscSettings.repeatRate * 100)
onValueModified: kcm.miscSettings.repeatRate = value / 100