e751
![]() |
|
|
|
|
|||||||
| X.Org X.Org on FreeBSD installation & configuration. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Is there a way to use numpad keys as the related non-numpad keys? That is, the ARROWS, PGUP, PGDN, HOME, END, INS, DEL on a desktop keyboard.
My desktop env is Xfce and I prefer stick with it. I know ther's an option in Gnome keyboard that do this trik, but never tested if it really works. In Xorg configuration there is an option Code:
Option "XkbOption" "numpad:microsoft" I installed Xorg without Hal, but some port use it (gnome-mount, Thunar and few others, I'm working for remove it), anyways Xorg doesn't depend on it so the option should works, or perhaps it's wrong typed. Anyone know if there is a solution? I run in troubles editing text, some habits are hard to die. Last edited by freethread; November 1st, 2011 at 07:10. |
|
#2
|
||||
|
||||
|
Is there any reason you can't turn NumLock off?
__________________
"I reject your reality and substitute my own!" -- Adam Savage, Mythbusters iBlast! I use vi so much I keep wanting to enter commands when I type in a forum!<ESC>:wAGah! Proud user of the FreeBSD Operating System. http://www.FreeBSD.org/ |
|
#3
|
|||
|
|||
|
lol, I don't know how you can see the numlock led on my keyboard, anyways it's turned off.
I will explain the problem in more detail. For 'cut', 'copy' and 'paste' command I use respectively 'shift+del', 'ctrl+ins', 'shift+ins', I use them from about 25 years, moreover X Windows is not the graphic environment I usually use. The numeric pad always work as cursor movement and not numeric keys (so nuklock is turned off). If you try to type 'ctrl+ins' (INSERT on numpad), nothing happens in Xfce and in more general all X desktop envs. When you type 'shift+ins' (INSERT on numeric pad) a '0' (zero) will be printed. I prefer the 'ctrl-ins', 'shift-ins' and 'shift-del' on numpad behave the same as on the non-numpad 'ins' and 'del'. The same happens with selection 'shift+(arrows|home|end|pgup|pgdn)' and 'shift+ctrl+(home|end|pgup|pgdn)' in this case I use the 4 arrow keys and it works, but for home, end, pgup, pgdn I use the numpad keys. Anyhow, if there is a solution for one of the key on numpad it works for all. As an example, some editors like Geany, Eclipse IDE and, if I remember SciTE, that key combinations are configurable. |
|
#4
|
||||
|
||||
|
This could be due to a keymap setting. On a US keyboard, the numpad keys type cursor movements unless Numlock is on.
In xfce, the Settings/Keyboard control panel will recognize numpad shift-0 as separate from shift-0. Offhand I can't recall how you can send a fake input character in X, but I'm pretty sure it's possible. There's xkbcomp(1) and a little searching turns up x11/xdotool. (Untested.) |
|
#5
|
||||
|
||||
|
Quote:
Quote:
__________________
"I reject your reality and substitute my own!" -- Adam Savage, Mythbusters iBlast! I use vi so much I keep wanting to enter commands when I type in a forum!<ESC>:wAGah! Proud user of the FreeBSD Operating System. http://www.FreeBSD.org/ Last edited by ikreos; November 1st, 2011 at 04:05. |
|
#6
|
|||
|
|||
|
Thanks ikreos and wblock for your advices, after a deep search on the web without success and after many test and Xfce restarts, I found a solution that works for me, perhaps it's not elegant but block a lot of swearwords.
First thing, the line I had in xorg.conf was wrong, this is the right one Code:
Section "InputDevice"
Identifier "Keyboard0"
...
Option "XkbOptions" "numpad:microsoft"
EndSection
Code:
xmodmap -e "keysym KP_Insert = Insert" xmodmap -e "keysym KP_Delete = Delete" exec startxfce4 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Fluxbox] Fluxbox keys tutorial | teckk | Other Window Managers | 1 | August 25th, 2011 13:40 |
| GELI keys not found | bbzz | General | 6 | May 8th, 2011 23:26 |
| [Solved] Multimedia keys | serjsk8 | Multimedia | 3 | October 3rd, 2010 23:43 |
| Multimedia Keys | CodeBlock | Multimedia | 25 | September 4th, 2010 17:04 |
| Authentication with SSH keys | dennylin93 | Web & Network Services | 3 | July 30th, 2009 13:56 |