Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Ok, I've used Ubuntu with GNOME for a while, but now I'm using XUbuntu. In Ubuntu, there used to be a keyboard preference which makes the numpad more sane, it was called something like "Make Shift+NumPad work like Windows".

The problem this options solves is, that when you press NumPad 7, it acts like the "Home" key, which is all fine, but if you press Shift+NumPad 7, it acts like the "7" key, which is not fine because I'm on a laptop and the regular "Home" key requires me to pull of an anatomically insane move. Anyways, this option made Shift+NumPad 7 act like the "Home" key.

I can't find that option under XUbuntu. How do I set it?

Update: GUI or command line, doesn't matter.

share|improve this question

4 Answers 4

up vote 7 down vote accepted

After some grepping I found the solution: You need to add the numpad:microsoft option to the XkbOptions. On older Ubuntus, do that in your xorg.conf. On newer ones open the file /etc/default/keyboard and change this line:

XKBOPTIONS=""

to

XKBOPTIONS="numpad:microsoft"

Save and reboot (restarting X doesn't seem to work, at least not with RAlt+PrintScreen+K). You may need to run sudo dpkg-reconfigure keyboard-configuration for changes to take effect.

share|improve this answer

Glad I found your post. Using Natty Narwhal, I found a similar option in the Keyboard settings.

  1. Search for Keyboard
  2. Click Layouts tab
  3. Click Options button
  4. Expand miscellaneous compatibility options
  5. Check "Shift with numeric keypad keys works as in MS Windows"
  6. Close and you're good!
share|improve this answer
    
Thank you! This is the only solution that worked for me - editing /etc/default/keyboard didn't work. –  jocull Mar 25 '13 at 22:02
4  
That option has been removed in 13.10. It can still be selected by installing gnome-tweak-tool: sudo apt-get install gnome-link-tool. Then you'll find it under "Typing" in the "Miscellaneous compatibility options" list. –  f.cipriani Jan 8 '14 at 22:02
2  
@f.cipriani I don't know if that was a typo in your comment or if the tool has been renamed, but the current correct name is gnome-tweak-tool. –  waldyrious May 12 '14 at 10:12
2  
Thanks @waldir, that was a typo, it is actually gnome-tweak-tool –  f.cipriani May 12 '14 at 13:30

Ubuntu 14.04 have no more "Miscellaneous compatibility options" in the keyboard settings. Editing /etc/default/keyboard also is not a working solution. But dconf database contains the required options with key /org/gnome/desktop/input-sources/xkb-options. This options should be completed with numpad:microsoft to something like ['grp:alt_shift_toggle', 'grp_led:scroll', 'numpad:microsoft'] manually in dconf-editor or using this script:

# !/bin/bash
old=`gsettings get org.gnome.desktop.input-sources xkb-options`
new=`echo $old | sed "s/'numpad:microsoft'//g" | sed -r "s/(, )+/, /g" | sed -r "s/(, )?]/, 'numpad:microsoft']/"`
gsettings set org.gnome.desktop.input-sources xkb-options "$new"
share|improve this answer
    
Thanks man, you saved my life! –  Saysmaster Jan 13 at 23:05
    
awesome!! what on earth was someone smoking to remove this... Or, if this feature is some "evil windows thing", how are you supposed to do shift-end on the laptop, when the regular key is in a hard to reach place? –  peter karasev Aug 18 at 15:04

I'm adding this answer for reference purposes. I'd be glad if anyone notifies me for more appropriate place.

I'm using Ubuntu 11.10 and this is how I achieved this:

-system settings->

--keyboard layout->

---miscellaneous compatibility options->

----shift with numeric keypad keys works as in MS windows - [check this]

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.