maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N810 (https://talk.maemo.org/forumdisplay.php?f=28)
-   -   Remapping keyboard: PgUp, PgDn, Chr (https://talk.maemo.org/showthread.php?t=24170)

q335r49 2008-10-08 21:16

Remapping keyboard: PgUp, PgDn, Chr
 
Hey guys, some questons on remapping the keyboard:
1. has anyone succeeded in getting PgUp, Pgdn mapped by modifying rx-44?
1b. Possible to remap pgup,pgdn to the shift+up-down-left-right keys?
2. How about changing the chr key to a control key?
3. Or, as an alternative to 2), anyone know how to get a stickied or locked control, a la the shift?
4. Im thinking of having the left shift key be a control key since shift is sticķied and ctrl isn't, so i need 2 of them...

vinc17 2008-12-28 19:19

Re: Remapping keyboard: PgUp, PgDn, Chr
 
Quote:

Originally Posted by q335r49 (Post 231849)
1. has anyone succeeded in getting PgUp, Pgdn mapped by modifying rx-44?
1b. Possible to remap pgup,pgdn to the shift+up-down-left-right keys?

I tried in the past, without any success.

I would also like to know how the Chr rules can be changed. For instance, Chr+e (without releasing Chr) gives é, Chr+e+e gives è, Chr+e+e+e gives ë, and so on. I would like to modify these sequences, e.g. so that Chr+j give [, Chr+k give ], Chr+g give { and Chr+h give }.

Matan 2008-12-28 20:37

Re: Remapping keyboard: PgUp, PgDn, Chr
 
Currently, CHR key is not handled by the XKB, but by something else (probably hildon-input-something).

See in

http://my.arava.co.il/~matan/770/rx-44-he

For an example of changing this situation - CHR becomes a normal modifier key, with shift+CHR used as CHR lock. This cancels CHR's special meaning, so if you use something like this, make sure you put all symbols you need in the key map.

vinc17 2008-12-29 00:29

Re: Remapping keyboard: PgUp, PgDn, Chr
 
Quote:

Originally Posted by Matan (Post 253043)
For an example of changing this situation - CHR becomes a normal modifier key, with shift+CHR used as CHR lock. This cancels CHR's special meaning, so if you use something like this, make sure you put all symbols you need in the key map.

I'd rather stick to the standard Chr behavior, which is more powerful: one can have access to several characters mapped to a single key.

Andre Klapper 2008-12-29 14:01

Re: Remapping keyboard: PgUp, PgDn, Chr
 
I wonder whether http://www.internettablettalk.com/fo...ad.php?t=14698 is related (virtual keyboard though, not input-methods). Maybe not. :-P

vinc17 2008-12-29 17:29

Re: Remapping keyboard: PgUp, PgDn, Chr
 
I don't think it is related. The files mentioned in this thread seem to be about virtual keyboards only (I decoded en_US.vkb as documented).

Information for the physical keyboard is in the /usr/share/X11/xkb/symbols/nokia_vndr/rx-44 file. I just don't know why I couldn't remap cursor keys + shift (I suppose that there are other things under /usr/share/X11/xkb to change because cursor keys are a bit special).

I couldn't find where the Chr sequences are defined. They don't even necessarily depend on the keyboard.

The thread also refers to http://idoru.metadreams.net/~kimju/s...mo/decode_vkb/, which mentions a document How to extend Hildon Input Methods (the URL was no longer valid, I found the new one with Google). However this seems to be about the virtual keyboards only. I've quickly looked at the documentation for Diablo, but couldn't find anything.

Edit: that may be here: Extending Hildon Input Methods.

johnkzin 2008-12-29 17:36

Re: Remapping keyboard: PgUp, PgDn, Chr
 
By cursor keys, do you mean the dpad? Because the dpad pre-dates the N810. So, I would expect that the file where you manipulate cursor keys is a file that's common to both the N810 and the N800.

vinc17 2008-12-29 17:59

Re: Remapping keyboard: PgUp, PgDn, Chr
 
Quote:

Originally Posted by johnkzin (Post 253228)
By cursor keys, do you mean the dpad?

I don't know the official name. The pad with the 5 buttons/keys on the left.

Quote:

Originally Posted by johnkzin (Post 253228)
Because the dpad pre-dates the N810. So, I would expect that the file where you manipulate cursor keys is a file that's common to both the N810 and the N800.

I don't think so. The rx-44 file (which is specific to the N810) contains:
Code:

    key <KPEN>  {      [      Return          ]      };
    key <UP>    {      [      Up              ]      };
    key <DOWN>  {      [      Down            ]      };
    key <LEFT>  {      [      Left            ]      };
    key <RGHT>  {      [      Right          ]      };

I suppose that corresponds to this pad. These are these lines I tried to modify (by adding symbols, like for the other lines) in the past.

johnkzin 2008-12-29 19:05

Re: Remapping keyboard: PgUp, PgDn, Chr
 
Quote:

Originally Posted by vinc17 (Post 253237)
I don't know the official name. The pad with the 5 buttons/keys on the left.

Yeah, the dpad. Short for "directional keypad". Like on video game controllers and cell phones.

Quote:

I don't think so. The rx-44 file (which is specific to the N810) contains:
Code:

    key <KPEN>  {      [      Return          ]      };
    key <UP>    {      [      Up              ]      };
    key <DOWN>  {      [      Down            ]      };
    key <LEFT>  {      [      Left            ]      };
    key <RGHT>  {      [      Right          ]      };

I suppose that corresponds to this pad. These are these lines I tried to modify (by adding symbols, like for the other lines) in the past.
It might. But it might not. Do your changes work when you are using an external keyboard, and its arrow keys? The dpad might be defined independently of things like that.

vinc17 2008-12-29 19:10

Re: Remapping keyboard: PgUp, PgDn, Chr
 
Quote:

Originally Posted by johnkzin (Post 253251)
Do your changes work when you are using an external keyboard, and its arrow keys?

I've never used as external keyboard (and I don't have one).


All times are GMT. The time now is 02:00.

vBulletin® Version 3.8.8