Bug 486520 - Mouse Keys (move mouse with numpad) diagonal navigation using two cardinal directions
Summary: Mouse Keys (move mouse with numpad) diagonal navigation using two cardinal di...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.27.5
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-03 18:06 UTC by forestbeasts
Modified: 2026-06-11 16:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.7.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description forestbeasts 2024-05-03 18:06:15 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
It'd be nice if numpad mouse navigation would let you move diagonally by holding two cardinal directions (e.g. down+right / 2+6), like you would expect on a 4-way d-pad, in addition to the 1/3/7/9 diagonals.

STEPS TO REPRODUCE
1. Turn on mouse navigation with numpad.
2. Hold 2+6 (down+right).

OBSERVED RESULT
The cursor moves in whatever direction you hit first (effectively random if you hit both at once).

EXPECTED RESULT
The cursor moves diagonally in both directions held.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian 12
(available in About System)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
We're using mouse keys on a wireless keyboard for lack of a convenient mouse/trackpad, and don't have any issues with our fingers. I don't know if this is intentional behavior to prevent messing up if you press multiple keys accidentally. My guess is probably that just nobody thought of it, but just in case.
Comment 1 Bug Janitor Service 2026-06-09 12:41:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/9356
Comment 2 Vlad Zahorodnii 2026-06-09 13:53:19 UTC
Git commit 2472d4fa951d29d86fc811eb7e265008d4cd3e10 by Vlad Zahorodnii.
Committed on 09/06/2026 at 12:40.
Pushed by vladz into branch 'master'.

plugins/mousekeys: Allow combining orthogonal keys

This allows combining keys 6 and 8 on numpad to move the pointer in the
top-right direction, which can be a more convenient way for some people
to move the pointer with numpad.

M  +51   -46   src/plugins/mousekeys/mousekeys.cpp
M  +2    -2    src/plugins/mousekeys/mousekeys.h

https://invent.kde.org/plasma/kwin/-/commit/2472d4fa951d29d86fc811eb7e265008d4cd3e10
Comment 3 Vlad Zahorodnii 2026-06-09 14:48:37 UTC
Git commit a0f8aefb759a38ffb4578ff539580307f1b5fbc1 by Vlad Zahorodnii.
Committed on 09/06/2026 at 13:58.
Pushed by vladz into branch 'Plasma/6.7'.

plugins/mousekeys: Allow combining orthogonal keys

This allows combining keys 6 and 8 on numpad to move the pointer in the
top-right direction, which can be a more convenient way for some people
to move the pointer with numpad.


(cherry picked from commit 2472d4fa951d29d86fc811eb7e265008d4cd3e10)

Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>

M  +51   -46   src/plugins/mousekeys/mousekeys.cpp
M  +2    -2    src/plugins/mousekeys/mousekeys.h

https://invent.kde.org/plasma/kwin/-/commit/a0f8aefb759a38ffb4578ff539580307f1b5fbc1