maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [ANNOUNCE] NOKIA N900 Awesome Hardware Keyboard Layout for Programmers (https://talk.maemo.org/showthread.php?t=87511)

Mentalist Traceur 2012-12-29 01:29

Re: [ANNOUNCE] NOKIA N900 Awesome Hardware Keyboard Layout for Programmers
 
Quote:

Originally Posted by Mentalist Traceur (Post 1308639)
Since a post was made after mine, I decided to add this as a new post instead of editing previous:

The various key level groupings are in /usr/share/X11/xkb/types/

There's many files in there, and they're all apparently read by xkb when looking for the key map 'type'. So if you want to experiment with a Ctrl+[key] key map type, you can just make your own test file in there... I THINK. There's more to how xkb does that then just those files, but it's been years since I've looked around there in-depth.

Making headway on this issue. Apparently just making a new file doesn't automatically work (not sure why) but modifying the nokia one in types/ did. So I just quickly copied the PC_FN_LEVEL2 button code as "PC_CTRL_LEVEL2", replaced LevelThree with Control, and tried it on the arrows. This HAS blocked the MicroB behavior of Ctrl-left/Ctrl-right being tab/shift-tab.

However, it's worth noting that, so far, this also seems to be blocking the more typical (and possibly desirable) behavior of Ctrl+Left and Ctrl+Right moving to the beginning/end of a single word, which I guess is a hildon-level thing or something.

EDIT: To clarify, to block that default behavior, you need to map it to something other than that arrow key, but then Ctrl+arrow will not behave like you'd expect (unless you expect it to act like a different key). Furthermore, if you map Ctrl+arrow to Home/End keys, instead of behaving properly, in MicroB it works like PageUp/PageDown keys instead (but worked right in Terminal and Notes). If you leave the value for the Ctrl+arrow mappings blank, then it completely ignores that keypress combination. I'll fiddle some more sometime, but that's what I've gotten so far.


All times are GMT. The time now is 15:52.

vBulletin® Version 3.8.8