Wednesday, May 2, 2012

How to disable page forward/backward key in Thinkpad

It's a design flaw for Thinkpad to put page forward/backward together with the arrow keys. This frequently leads to loss of unpublished posts. This is what you can do in Ubuntu to disable those two keys:
  1. Create the file ~/.Xmodmap with the following contents
    keycode 166=
    keycode 167=
    
  2. (Depending on your distribution, this step may not be necessary.) Add the following code to your ~/.profile
    # keyboard modifier
    if [ -f $HOME/.Xmodmap ]; then
        /usr/bin/xmodmap $HOME/.Xmodmap
    fi
    

No comments:

Visitors