You are not logged in.

#1 2021-11-12 14:56:15

John Path
Member
Registered: 2021-10-15
Posts: 57

[SOLVED]Alt + arrow key not working

Hi evereyone,

I use vscode as my text editor, and Alt + arrow key is useful in vscode to move lines.

But it seems like after pressing and holding alt key, arrow key doesnot seems to work.
It only work when adding another key like "alt+ctrl+arrow_key",

Note: The arrow key in numpad work well with combination of alt but numpad is very far.

Thanks in advance to everyone for helping

Last edited by John Path (2021-11-14 13:47:31)

Offline

#2 2021-11-12 15:00:00

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

Re: [SOLVED]Alt + arrow key not working

Seems alt+arrow is grabbed by a shortcut?
Run

xev -event keyboard

press alt+arrow, release them again and post the output.

Offline

#3 2021-11-13 12:54:26

John Path
Member
Registered: 2021-10-15
Posts: 57

Re: [SOLVED]Alt + arrow key not working

seth wrote:

press alt+arrow, release them again and post the output.

Thanks for trying to help me i am quiet busy with my work these days here is the output of while pressing alt+arrow

 xev -event keyboard
Outer window is 0x1c00001, inner window is 0x1c00002

KeymapNotify event, serial 24, synthetic NO, window 0x0,
    keys:  0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

KeymapNotify event, serial 24, synthetic NO, window 0x0,
    keys:  0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

KeyRelease event, serial 25, synthetic NO, window 0x1c00001,
    root 0x963, subw 0x0, time 3052646, (186,91), root:(1255,648),
    state 0x0, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x1c00001,
    root 0x963, subw 0x0, time 3056187, (186,91), root:(1255,648),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  99  0   0   0   0   0   0   0   1   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

KeyRelease event, serial 28, synthetic NO, window 0x1c00001,
    root 0x963, subw 0x0, time 3057977, (186,91), root:(1255,648),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

Offline

#4 2021-11-13 14:46:15

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

Re: [SOLVED]Alt + arrow key not working

KeyPress event, serial 28, synthetic NO, window 0x1c00001,
    root 0x963, subw 0x0, time 3056187, (186,91), root:(1255,648),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  99  0   0   0   0   0   0   0   1   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

KeyRelease event, serial 28, synthetic NO, window 0x1c00001,
    root 0x963, subw 0x0, time 3057977, (186,91), root:(1255,648),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

Smells like global shortcut indeed.
Run

sleep 5; xdotool key "XF86LogGrabInfo"

and make sure to press alt+somearrow when xdotool hits.
This will print the grabbed shortcuts into the xorg log, w/ the pressed one conveniently being the active one.

Offline

#5 2021-11-14 13:47:06

John Path
Member
Registered: 2021-10-15
Posts: 57

Re: [SOLVED]Alt + arrow key not working

I found out that it was a keybinding added by a patch in dwm, I changed the keybinding for that task and its working well.

Thanks for your help SETH

Offline

Board footer

Powered by FluxBB