Disabling PgUp and PgDown

I’m trying to disable the PgUp and PgDown keys on my XPS13.

I used xev and got:

KeyPress event, serial 40, synthetic NO, window 0x4a00001,
root 0x1a2, subw 0x0, time 904428, (1342,361), root:(1342,426),
state 0x0, keycode 112 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 40, synthetic NO, window 0x4a00001,
root 0x1a2, subw 0x0, time 905322, (1342,361), root:(1342,426),
state 0x0, keycode 117 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

then used:
xmodmap -e ‘keycode 112 =’
xmodmap -e ‘keycode 117 =’
xmodmap -pke > ~/.Xmodmap

but still not working? Am I missing something?

Do you run Wayland or X ?

1 Like

I’m using x11

Isn’t there suppose to be

xmodmap -e 'keycode 112 =NoSymbol'
xmodmap -e 'keycode 117 =NoSymbol'

Also the character for quote looks like you copied it from an website because it’s the British apostrophe or the french l’élision.

Like they look soo similar

>>> print(hex(ord('\'')))
0x27
>>> print(hex(ord('`')))
0x60
>>> print(hex(ord('’')))
0x2019
>>> print(hex(ord('´')))
0xb4

sorry I typed the forum post manually from my phone I think it auto switched it… on laptop I used the standard ’ symbol I use for programming.

Added the NoSymbol. Failed to work. (even after reboot).

Tried editing manually with:

nano ~/.Xmodmap

changed both to NoSymbol still no luck. :frowning:

This is what I found today GitHub - mooz/xkeysnail: Yet another keyboard remapping tool for X environment could be worth the try