This forum has been archived. All content is frozen. Please use KDE Discuss instead.

"Europeize" numeric keypad?

Tags: None
(comma "," separated)
Manolete
Registered Member
Posts
61
Karma
0
OS

"Europeize" numeric keypad?

Tue Apr 07, 2009 7:46 pm
I can't see any option in System Settings (KDE 4.2.2) to change the behavior of my numpad's point key to make it print a comma instead a point. My region and language settings are correctly set to es_ES.UTF-8, and the decimals ant thousands separators too.
It probably is a silly problem, but I swear I'm looking everywhere and don't see anything "illustrating".


Thanks and regards.
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

RE: "Europeize" numeric keypad?

Tue Apr 07, 2009 8:07 pm
It has to do with your keyboard layout.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
Manolete
Registered Member
Posts
61
Karma
0
OS

RE: "Europeize" numeric keypad?

Tue Apr 07, 2009 8:37 pm
Hans wrote:It has to do with your keyboard layout.



I hadn't thought about that because I can write ñ, € or á, ü; so I thought my layout was correct; but I see there's some disagreement between Xorg: pc105, es; and KDE: pc 104, es.
I have changed KDE to use 105 keys layout without much hope and as previsible it hasn't had any effect.

This question may soung odd, but theres a special layout only to replace decimal comma instead point?


Tack
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

RE: "Europeize" numeric keypad?

Tue Apr 07, 2009 9:10 pm
I just checked in KDE 3.5, and I get a point with the Spanish layout. I don't know if there's any good way to fix this, but two possible solutions are:
1. Change the xkb layout or create a new one.
2. Remap the key with xmodmap.

Number 2 is probably the easiest (but not the "cleanest") way. You find the keycode with the [font=Courier]xev[/font] command and do something like
Code: Select all
xmodmap -e 'keycode 91 = KP_Delete KP_Separator'


To make the change "permanent", you have to run this command when you log in. I don't know if newer KDE versions automatically runs xmodmap on ~/.Xmodmap, but you can always create a bash script in ~/.kde/Autostart (might be .kde4 instead of .kde). The script could look something like this:

~/.kde/Autostart/remap.sh
Code: Select all
#!/bin/bash
xmodmap -e 'keycode 91 = KP_Delete KP_Separator'


Don't forget to make the script executable ([font=Courier]chmod a+x filename[/font]).


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
Manolete
Registered Member
Posts
61
Karma
0
OS

RE: "Europeize" numeric keypad?

Tue Apr 07, 2009 9:43 pm
Thanks a lot, Hans. Now it's late, but I'll try your instructions tomorrow.
foolosophy
Registered Member
Posts
20
Karma
0

RE: "Europeize" numeric keypad?

Wed May 06, 2009 7:09 pm
Does it work? Did you find a proper keyboard layout? I usually try to avoid xmodmap.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft