Restore default key repeat mode

Key repeat is the default we had in 5.20, albeit under a different key.
This changes for the key repeat was reverted elsewhere, but we need to
adjust the wayland default.
This commit is contained in:
David Edmundson 2021-01-28 09:17:47 +00:00
parent 90007b906b
commit e6c1735bdc

View file

@ -2263,7 +2263,7 @@ void InputRedirection::reconfigure()
const auto config = inputConfig->group(QStringLiteral("Keyboard"));
const int delay = config.readEntry("RepeatDelay", 660);
const int rate = config.readEntry("RepeatRate", 25);
const QString repeatMode = config.readEntry("KeyRepeat", "accent");
const QString repeatMode = config.readEntry("KeyRepeat", "repeat");
// when the clients will repeat the character or turn repeat key events into an accent character selection, we want
// to tell the clients that we are indeed repeating keys.
const bool enabled = repeatMode == QLatin1String("accent") || repeatMode == QLatin1String("repeat");