You are not logged in.

#1 2022-07-20 18:03:10

CronyAkatsuki
Member
From: Croatia
Registered: 2022-07-20
Posts: 5
Website

[SOLVED] Numpad keys not working in some programs.

So after an update about 2 weeks ago, can't remeber on what my numpad keys (arrows, end, ...) stopped working but only in certain programs like kitty terminal but only for some terminal programs(checked by installing alacritty and seeing that everything works there) and dmenu where the end and home numpad keys don't work anymore.

I searched the forum for an solution and checked the wiki  but none of them work. I even reinstalled two days ago and the problem still persists.

Note: when pressing num lock all numpad number keys work normally.

Edit: This is an laptop using dwm with xkblayout hr

Last edited by CronyAkatsuki (2022-07-21 12:59:43)

Offline

#2 2022-07-20 20:44:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: [SOLVED] Numpad keys not working in some programs.

Do you use any kind of input module (ibus, scim, fcitx)?
https://wiki.archlinux.org/title/Input_method

What's the output of

xev -event keyboard

when pressing KP_Home and KP_Up?

Offline

#3 2022-07-21 06:41:41

CronyAkatsuki
Member
From: Croatia
Registered: 2022-07-20
Posts: 5
Website

Re: [SOLVED] Numpad keys not working in some programs.

seth wrote:

Do you use any kind of input module (ibus, scim, fcitx)?
https://wiki.archlinux.org/title/Input_method

What's the output of

xev -event keyboard

when pressing KP_Home and KP_Up?

No I don't use any input modules.

Output of

xev -event keyboard
...
KeyPress event, serial 28, synthetic NO, window 0x3000001,
    root 0x840, subw 0x0, time 199130, (-255,621), root:(723,662),
    state 0x0, keycode 79 (keysym 0xff95, KP_Home), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x3000001,
    root 0x840, subw 0x0, time 199229, (-255,621), root:(723,662),
    state 0x0, keycode 79 (keysym 0xff95, KP_Home), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x3000001,
    root 0x840, subw 0x0, time 200488, (-255,621), root:(723,662),
    state 0x0, keycode 87 (keysym 0xff9c, KP_End), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x3000001,
    root 0x840, subw 0x0, time 200565, (-255,621), root:(723,662),
    state 0x0, keycode 87 (keysym 0xff9c, KP_End), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x3000001,
    root 0x840, subw 0x0, time 343505, (-567,671), root:(411,712),
    state 0x0, keycode 80 (keysym 0xff97, KP_Up), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x3000001,
    root 0x840, subw 0x0, time 343609, (-567,671), root:(411,712),
    state 0x0, keycode 80 (keysym 0xff97, KP_Up), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
...

Last edited by CronyAkatsuki (2022-07-21 06:45:28)

Offline

#4 2022-07-21 07:14:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: [SOLVED] Numpad keys not working in some programs.

The events are fine.
Run "cat" in kitty and press the numpad position keys.
Is there any ouput? Which one?

Offline

#5 2022-07-21 07:40:01

CronyAkatsuki
Member
From: Croatia
Registered: 2022-07-20
Posts: 5
Website

Re: [SOLVED] Numpad keys not working in some programs.

seth wrote:

The events are fine.
Run "cat" in kitty and press the numpad position keys.
Is there any ouput? Which one?

Output of cat in order up, down, left, right numpad keys:

cat                                                      
^[[A^[[B^[[D^[[C

Offline

#6 2022-07-21 07:49:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: [SOLVED] Numpad keys not working in some programs.

So the proper control sequences go in…
What's the actual metric for "stopped working" and what is the ouput of "echo $TERM" in either kitty and alacritty?

Offline

#7 2022-07-21 08:06:23

CronyAkatsuki
Member
From: Croatia
Registered: 2022-07-20
Posts: 5
Website

Re: [SOLVED] Numpad keys not working in some programs.

seth wrote:

So the proper control sequences go in…
What's the actual metric for "stopped working" and what is the ouput of "echo $TERM" in either kitty and alacritty?

Stoped working as in neovim prints weird icons when I press the numpadkeys when they worked before.
Also dmenu not allowing me to jump from start to end and reverse with  KP_Home and KP_End out of nowhere, regular home and end keys do work.
There are also some other programs that also don't recognize numpad keys usage anymore when they could before  just can't remember which one's.

echo $TERM
xterm-kitty

EDIT: this is also the reason I'm confused since everything seems like it should work but in practice it doesn't for some weird reason.

Last edited by CronyAkatsuki (2022-07-21 08:08:12)

Offline

#8 2022-07-21 09:05:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: [SOLVED] Numpad keys not working in some programs.

https://github.com/neovim/neovim/issues/19143
https://github.com/neovim/neovim/issues/14400

Try

TERM=xterm neovim

Are you sure dmenu has worked before?
I've a rather old build of dmenu-ee-git around and that doesn't handle the numpad navigators at all.

Offline

#9 2022-07-21 12:57:22

CronyAkatsuki
Member
From: Croatia
Registered: 2022-07-20
Posts: 5
Website

Re: [SOLVED] Numpad keys not working in some programs.

seth wrote:

https://github.com/neovim/neovim/issues/19143
https://github.com/neovim/neovim/issues/14400

Try

TERM=xterm neovim

Are you sure dmenu has worked before?
I've a rather old build of dmenu-ee-git around and that doesn't handle the numpad navigators at all.

Seems like the version of dmenu I installed doesn't support numpad keys also. I installed the newest one from the arch repos and they work, wiill have to update my build.

On the other hand in kitty neovim still prints weird boxes even with settings TERM to xterm, will bring the issue over to the kitty repo.

Thank you for your help will mark this issue as solved.  ^-^

Offline

Board footer

Powered by FluxBB