Shift + home/end behaves differently with numpad keys on GNOME apps

Cross-posting from GNOME Discourse hoping to attract more attention here.

To sum it up: shift+home/end keys select text from the cursor till the beginning/end of the line, as expected. However, if I press home/end keys on the numpad (with numlock off), text is not selected, and the cursor simply moves to the beginning/end of the line. This only happens on GNOME apps (both gtk3 and gtk4 – gedit, text editor, apostrophe etc.). Non-gtk apps (Firefox, Telegram etc.) work as expected.

Can someone with a numpad test it to confirm if it is a general issue or something specific to my hardware? :pray: IIRC this used to work in the past, but since at least GNOME 45 the behavior has changed (at least here on my notebook).

I tried it just now and I can replicate this. Shift+home in Gnome’s text editor doesn’t select text, but shift+home in Firefox does.

1 Like

Thanks for confirming @mattipulkkinen ! Just to make sure it’s the exact same situation: text selection fails if you use keypad’s equivalents to Home and End keys, but it succeeds if you use “real” Home and End keys? (it took me a while to figure this out)

I filed issue 6660 on gtk’s gitlab, it would be interesting if you could comment there as well, to help raise awareness.