[Howto] Change the dock keyboard layout

Search This thread

gnagnone

Member
Jun 9, 2011
32
1
Is it possible to have different mappings so that when I want to use my tablet for coding I can change something and I have esc, backspace and so on... when I just want to have fun or browse the web with my tab I click something and I switch back to the normal layout?
 
  • Like
Reactions: absinto10

dam

Senior Member
Nov 21, 2006
65
3
Tokyo
multiple layout

Is it possible to have different mappings so that when I want to use my tablet for coding I can change something and I have esc, backspace and so on... when I just want to have fun or browse the web with my tab I click something and I switch back to the normal layout?

I have the same question and I was wondering if somebody found a solution.
If so, please let us know. :)

Best.
 
  • Like
Reactions: absinto10

katmandu421

Senior Member
Sep 8, 2008
779
10
Denver
Ok, so I bought a generic apple bt keyboard from Amazon. I'm really happy with it so far. It pairs and works perfectly with my windows 7 box. It also pairs with the transformer but once disconnected you need to unpair in order to restablish a working connection. That is an issue with several bt keyboards I've seen in the accessories forum.

Now here's the issue: I thought the shift button was not mapped properly. It just wont register when using with the tablet, so finally rooted the tablet and troubleshot using the keytest.apk. The mapping was in fact correct. So while I was pulling my hair out trying to figure out what was up I was banging away and noticed that the shift DOES work if pressed at exactly the same time as the other key. It's pretty hit or miss, in fact it's about a 5% shot when trying to replicate it. But that leads me to believe that there is a timeout type of thing going on, like it is not "holding" the button.

Any thoughts on what variables in any of the keychar or key layout files I should look at changing to get the shift key to "hold"

Thanks (Just glad I finally had a breakthru)
 

kovla

Member
Jul 31, 2005
39
2
Hi, all

What would then be the syntax to map certain symbols to the Ctrl-key combo? I need to create a Cyrillic (Russian) phonetic layout. Since the alphabet has 6 more letters than Latin, I'd like to put the extra letter where digits are. The digits would then be accessible using Ctrl.

Is that possible using this technique?
 

CelticWebSolutions

Senior Member
May 25, 2011
855
2,012
Hi, all

What would then be the syntax to map certain symbols to the Ctrl-key combo? I need to create a Cyrillic (Russian) phonetic layout. Since the alphabet has 6 more letters than Latin, I'd like to put the extra letter where digits are. The digits would then be accessible using Ctrl.

Is that possible using this technique?

A few people have asked how to map combinations of buttons to sort the @ and " with the shift key and 2 but I don't think anybody knows how to do it because there has never been a reply unfortunately.
 

nachtschicht

Senior Member
Jul 28, 2009
918
152
Is this method suitable for mapping the browser or play/pause/back/forward keys to another app? I really would like Dolphin to be started when I press the browser key, and the normal Music player instead of Xiia (as it is set up right now).
Does somebody know how to do that?
 
  • Like
Reactions: absinto10

deadman3000

Senior Member
May 27, 2006
796
36
I already asked about changing places of @ and " but got no answers :( it would be really useful if i culd becaus ei use a different on screen keyboar and it messes up some of teh Shift + keys


I've figured out how to do that. Gimmie some time to get the instructions together as I am currently swapping my " and @ keys to where they should be.

OK basically the " and @ keys (at least on my keyboard dock) are swapped. In the config files @ is mapped to shift+2 and " is mapped to shift+' so in order to get them on the correct keys you will need to edit those instances in the selected language files located in /system/user/charkeys/asusec.kcm

For those in the UK you need to change the folowing lines in one sitting (Do not reboot until you have them all done otherwise you will get stuck).

MAKE A BACKUP BEFORE CONTINUING!

So now edit /system/user/charkeys/asusec.kcm

Change

key GRAVE {
label, number: '`'
base: '`'
shift: '~'
alt, ctrl, meta: none
}

To

key GRAVE {
label, number: '`'
base: '`'
shift: '\u00ac'
alt, ctrl, meta: '\u00a6
}

Change

key 2 {
label, number: '2'
base: '2'
shift: '@'
alt, ctrl, meta: none
}

To

key 2 {
label, number: '2'
base: '2'
shift: '"'
alt, ctrl, meta: none
}

Change

key 3 {
label, number: '3'
base: '3'
shift: '#'
alt, ctrl, meta: none
}

To

key 3 {
label, number: '3'
base: '3'
shift: '\ua03'
alt, ctrl, meta: none
}

Change

key BACKSLASH {
label, number: '\\'
base: '\\'
shift: '|'
alt, ctrl, meta: none
}

To

key BACKSLASH {
label, number: '#'
base: '#'
shift: '~'
alt, ctrl, meta: none
}

This is for UK layout only as far as I know but now I have Thumbs keyboard and all my keys are mapped correctly.
 
Last edited:
  • Like
Reactions: phedders

maq0007

Member
Feb 9, 2008
37
3
Warsaw
None of the changes i made to any of the files seem to be working, is there something else i need to do after modifying the files?
 

MasterfullDON

Senior Member
Jun 15, 2011
126
8
A few people have asked how to map combinations of buttons to sort the @ and " with the shift key and 2 but I don't think anybody knows how to do it because there has never been a reply unfortunately.

Ive finally done it.

You need to edit the keyboard files, you can only SHUFFLE the keys around, you cannot introduce new characters, i.e I wanted to change the # on the 3 for £ but couldnt based on the software for the virtual keyboard I was using.

The file to edit is asus.kcm with word. There are 4lines to the coding para of that eg;

key GRAVE {
label, number: '`'
base: '`'
shift: '~'
alt, ctrl, meta: none
}

key 1 {
label, number: '1'
base: '1'
shift: '!'
alt, ctrl, meta: none
}

key 2 {
label, number: '2'
base: '2'
shift: '"'
alt, ctrl, meta: none
}

key 3 {
label, number: '3'
base: '3'
shift: '#'
alt, ctrl, meta: none

so if you do something like this;

key GRAVE {
label, number: '`'
base: '`'
shift: '~'
alt, ctrl, meta: none
}

key 1 {
label, number: '1'
base: '1'
shift: '!'
alt, ctrl, meta: none
}

key 2 {
label, number: '2'
base: '3'
shift: '"'
alt, ctrl, meta: none
}

key 3 {
label, number: '3'
base: '2'
shift: '#'
alt, ctrl, meta: none

It will work but if you introduce a character in base or shift, then it must be a character used within the file. So just swapping the function.

Also you must not change the lable ! this is important.

Im sorry I didnt reply earlier...but here is the answer to remapping. Its a little confusing, but hope it helps.

send me a pm if you need help.
 
  • Like
Reactions: phedders

andrijan11

New member
Sep 9, 2011
1
0
Hey there,

I am trying to make an icelandic keyboard layout but I need some help.

I would like to make a new layout so I can select it from the list in settings.

I am also wondering how the 'comma' letters would work, on icelandic keyboard you press the button right to ';' and then a vowel.

thanks in advance
 

Globespy

Senior Member
Jun 19, 2008
2,088
408
Spaceship Earth
mapping browser key to different browser app?

I saw that it's been asked a few times but no answers, and so wondered if anyone was able to figure this out, and and if so, you please Share! I :)

Thanks.
 

Alvaster

Senior Member
Apr 9, 2008
101
4
Ok, so I bought a generic apple bt keyboard from Amazon. I'm really happy with it so far. It pairs and works perfectly with my windows 7 box. It also pairs with the transformer but once disconnected you need to unpair in order to restablish a working connection. That is an issue with several bt keyboards I've seen in the accessories forum.

Now here's the issue: I thought the shift button was not mapped properly. It just wont register when using with the tablet, so finally rooted the tablet and troubleshot using the keytest.apk. The mapping was in fact correct. So while I was pulling my hair out trying to figure out what was up I was banging away and noticed that the shift DOES work if pressed at exactly the same time as the other key. It's pretty hit or miss, in fact it's about a 5% shot when trying to replicate it. But that leads me to believe that there is a timeout type of thing going on, like it is not "holding" the button.

Any thoughts on what variables in any of the keychar or key layout files I should look at changing to get the shift key to "hold"

Thanks (Just glad I finally had a breakthru)

Now, see, I'm having a similar problem here. However, I find that when I use the Shift key, it works in accordance to the app I'm in. Some will register it when held, others won't. Like when I had my remote desktop--holding shift wouldn't highlight anything. Maybe I have to press with WITH the arrow key? Dunno. But in other apps, it worked fine.


I would seriously like to see where the keyboard shortcuts are mapped, like CTRL+Shift, because THATS my enemy. I need to highlight words/sentences in my word docs, and if I can't do that, I'm selling this dock. I'm going to root it this week and try to see if I can't tinker with the files and explore this side of the board before I mark this investment of a dock non-productive.


EDIT: Also, the SHIFT key doesn't seem to register as the SHIFT key, but as some sort of "capitalize/alternate letter this" function. Because it doesn't act as SHIFT, just "capitalize". I wonder if there's a way to change that.
 
Last edited:

goodintentions

Senior Member
Aug 14, 2010
2,540
729
Let's talk about remapping a key to a combo of key. As of now, shift+backspace = delete. What if you want to do change the lock key to shift+backspace? I've been playing around with the remapping file and still can't figure this out. Anyone else have any luck?
 

MightyMackinac

New member
Apr 5, 2011
4
2
Anchorage, AK
Awesome post bytheway. This is a great tool right here.

One thing that i just noticed about the docks keyboard. Some of the keys (mainly the forward slash and backslash) are different sizes than the other keys. This will cause problems with other layouts, such as Dvorak (forward slash is replaced by Z and left bracket is replaced by forward slash).

No way around it, unless you wanna make custom keys or just make your own version of the layout. I'm making mine into Dvorak, but leaving the forward slash where its at and replacing left bracket with z. it's going to take some getting used to, but how often does one use Z anyway?

Anyway, just thought i would point that out to you guys. Again, thanks for the info on switching the layouts!

EDIT: Here is my version of the dvorak layout for the TF101 dock

The forward slash and the Z keys are the only ones out of place, due to the different sizes of the keys.

Code:
key 41    GRAVE                   WAKE UNLOCK
key 2     1                       WAKE UNLOCK
key 3     2                       WAKE UNLOCK
key 4     3                       WAKE UNLOCK
key 5     4                       WAKE UNLOCK
key 6     5                       WAKE UNLOCK
key 7     6                       WAKE UNLOCK
key 8     7                       WAKE UNLOCK
key 9     8                       WAKE UNLOCK
key 10    9                       WAKE UNLOCK
key 11    0                       WAKE UNLOCK
key 12    LEFT_BRACKET            WAKE UNLOCK
key 13    RIGHT_BRACKET           WAKE UNLOCK
key 14    DEL                     WAKE UNLOCK
key 15    TAB                     WAKE UNLOCK
key 16    APOSTROPHE              WAKE UNLOCK
key 17    COMMA                   WAKE UNLOCK
key 18    PERIOD                  WAKE UNLOCK
key 19    P                       WAKE UNLOCK
key 20    Y                       WAKE UNLOCK
key 21    F                       WAKE UNLOCK
key 22    G                       WAKE UNLOCK
key 23    C                       WAKE UNLOCK
key 24    R                       WAKE UNLOCK
key 25    L                       WAKE UNLOCK
key 26    Z                       WAKE UNLOCK
key 27    EQUALS                  WAKE UNLOCK
key 43    BACKSLASH               WAKE UNLOCK
key 58    CAPS_LOCK               WAKE UNLOCK
key 30    A                       WAKE UNLOCK
key 31    O                       WAKE UNLOCK
key 32    E                       WAKE UNLOCK
key 33    U                       WAKE UNLOCK
key 34    I                       WAKE UNLOCK
key 35    D                       WAKE UNLOCK
key 36    H                       WAKE UNLOCK
key 37    T                       WAKE UNLOCK
key 38    N                       WAKE UNLOCK
key 39    S                       WAKE UNLOCK
key 40    MINUS                   WAKE UNLOCK
key 28    ENTER                   WAKE UNLOCK
key 42    SHIFT_LEFT              WAKE UNLOCK
key 44    SEMICOLON               WAKE UNLOCK
key 45    Q                       WAKE UNLOCK
key 46    J                       WAKE UNLOCK
key 47    K                       WAKE UNLOCK
key 48    X                       WAKE UNLOCK
key 49    B                       WAKE UNLOCK
key 50    M                       WAKE UNLOCK
key 51    W                       WAKE UNLOCK
key 52    V                       WAKE UNLOCK
key 53    SLASH                   WAKE UNLOCK
key 54    SHIFT_RIGHT             WAKE UNLOCK
key 29    CTRL_LEFT               WAKE UNLOCK
key 217   SEARCH                  WAKE UNLOCK
key 57    SPACE                   WAKE UNLOCK
key 100   ALT_RIGHT               WAKE UNLOCK
key 97    CTRL_RIGHT              WAKE UNLOCK
key 115   VOLUME_UP               WAKE UNLOCK
key 142   SLEEP                   WAKE UNLOCK
key 105   DPAD_LEFT               WAKE UNLOCK
key 103   DPAD_UP                 WAKE UNLOCK
key 108   DPAD_DOWN               WAKE UNLOCK
key 106   DPAD_RIGHT              WAKE UNLOCK
key 158   BACK                    WAKE UNLOCK
key 238   WIRELESS                WAKE UNLOCK
key 237   BLUETOOTH               WAKE UNLOCK
key 60    TOUCHPAD                WAKE UNLOCK
key 224   BRIGHTNESS_DOWN         WAKE UNLOCK
key 225   BRIGHTNESS_UP           WAKE UNLOCK
key 61    BRIGHTNESS_AUTO         WAKE UNLOCK
key 212   CAPTURE                 WAKE UNLOCK
key 150   EXPLORER                WAKE UNLOCK
key 62    SETTINGS                WAKE UNLOCK
key 165   MEDIA_PREVIOUS          WAKE UNLOCK
key 164   MEDIA_PLAY_PAUSE        WAKE UNLOCK
key 163   MEDIA_NEXT              WAKE UNLOCK
key 114   VOLUME_DOWN             WAKE UNLOCK
key 113   VOLUME_MUTE             WAKE UNLOCK
key 172   HOME                    WAKE UNLOCK
key 139   MENU                    WAKE UNLOCK
key 104   PAGE_UP                 WAKE UNLOCK
key 109   PAGE_DOWN               WAKE UNLOCK
key 107   MOVE_END                WAKE UNLOCK
key 102   MOVE_HOME               WAKE UNLOCK
key 86    EUROPE_2                WAKE UNLOCK
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    As a Colemak user I was initially frustrated with the Transformer keyboard dock, as it comes with QWERTY and there is no obvious way to change the layout. After some googling and trial-and-error I was able to solve the problem. As it seems that there is no good guide on the transformer forum on how to change the keyboard layout, I figured that I might as well write my own, so that newcomers can accomplish the same thing more easily.

    Disclaimer: The following are mostly the result of my own trial&error, so it might not be totally correct. Follow the guide at your own risk! Also this requires root access so be careful and back up anything that you might change.

    The keyboard layout files for the ASUS transformer lie in these folders
    Code:
    /system/usr/keylayout
    /system/usr/xt9/keylayout
    The second folder is used when you are using one of the ASUS input methods (as suggested by ASUS to "keep consistency with the physical keyboard"), whereas the first folder contains keyboard layout for general situations. The file /system/usr/keylayout/asusec.kl is the main layout profile for the keyboard dock and it is in plain text format. Its original content looks like this
    Code:
    key 41    GRAVE                   WAKE UNLOCK
    key 2     1                       WAKE UNLOCK
    key 3     2                       WAKE UNLOCK
    key 4     3                       WAKE UNLOCK
    key 5     4                       WAKE UNLOCK
    key 6     5                       WAKE UNLOCK
    key 7     6                       WAKE UNLOCK
    key 8     7                       WAKE UNLOCK
    key 9     8                       WAKE UNLOCK
    key 10    9                       WAKE UNLOCK
    key 11    0                       WAKE UNLOCK
    key 12    MINUS                   WAKE UNLOCK
    key 13    EQUALS                  WAKE UNLOCK
    key 14    DEL                     WAKE UNLOCK
    key 15    TAB                     WAKE UNLOCK
    key 16    Q                       WAKE UNLOCK
    key 17    W                       WAKE UNLOCK
    key 18    E                       WAKE UNLOCK
    key 19    R                       WAKE UNLOCK
    key 20    T                       WAKE UNLOCK
    key 21    Y                       WAKE UNLOCK
    key 22    U                       WAKE UNLOCK
    key 23    I                       WAKE UNLOCK
    key 24    O                       WAKE UNLOCK
    key 25    P                       WAKE UNLOCK
    key 26    LEFT_BRACKET            WAKE UNLOCK
    key 27    RIGHT_BRACKET           WAKE UNLOCK
    key 43    BACKSLASH               WAKE UNLOCK
    key 58    CAPS_LOCK               WAKE UNLOCK
    key 30    A                       WAKE UNLOCK
    key 31    S                       WAKE UNLOCK
    key 32    D                       WAKE UNLOCK
    key 33    F                       WAKE UNLOCK
    key 34    G                       WAKE UNLOCK
    key 35    H                       WAKE UNLOCK
    key 36    J                       WAKE UNLOCK
    key 37    K                       WAKE UNLOCK
    key 38    L                       WAKE UNLOCK
    key 39    SEMICOLON               WAKE UNLOCK
    key 40    APOSTROPHE              WAKE UNLOCK
    key 28    ENTER                   WAKE UNLOCK
    key 42    SHIFT_LEFT              WAKE UNLOCK
    key 44    Z                       WAKE UNLOCK
    key 45    X                       WAKE UNLOCK
    key 46    C                       WAKE UNLOCK
    key 47    V                       WAKE UNLOCK
    key 48    B                       WAKE UNLOCK
    key 49    N                       WAKE UNLOCK
    key 50    M                       WAKE UNLOCK
    key 51    COMMA                   WAKE UNLOCK
    key 52    PERIOD                  WAKE UNLOCK
    key 53    SLASH                   WAKE UNLOCK
    key 54    SHIFT_RIGHT             WAKE UNLOCK
    key 29    CTRL_LEFT               WAKE UNLOCK
    key 217   SEARCH                  WAKE UNLOCK
    key 57    SPACE                   WAKE UNLOCK
    key 100   ALT_RIGHT               WAKE UNLOCK
    key 97    CTRL_RIGHT              WAKE UNLOCK
    key 115   VOLUME_UP               WAKE UNLOCK
    key 142   SLEEP                   WAKE UNLOCK
    key 105   DPAD_LEFT               WAKE UNLOCK
    key 103   DPAD_UP                 WAKE UNLOCK
    key 108   DPAD_DOWN               WAKE UNLOCK
    key 106   DPAD_RIGHT              WAKE UNLOCK
    key 158   BACK                    WAKE UNLOCK
    key 238   WIRELESS                WAKE UNLOCK
    key 237   BLUETOOTH               WAKE UNLOCK
    key 60    TOUCHPAD                WAKE UNLOCK
    key 224   BRIGHTNESS_DOWN         WAKE UNLOCK
    key 225   BRIGHTNESS_UP           WAKE UNLOCK
    key 61    BRIGHTNESS_AUTO         WAKE UNLOCK
    key 212   CAPTURE                 WAKE UNLOCK
    key 150   EXPLORER                WAKE UNLOCK
    key 62    SETTINGS                WAKE UNLOCK
    key 165   MEDIA_PREVIOUS          WAKE UNLOCK
    key 164   MEDIA_PLAY_PAUSE        WAKE UNLOCK
    key 163   MEDIA_NEXT              WAKE UNLOCK
    key 114   VOLUME_DOWN             WAKE UNLOCK
    key 113   VOLUME_MUTE             WAKE UNLOCK
    key 172   HOME                    WAKE UNLOCK
    key 139   MENU                    WAKE UNLOCK
    key 104   PAGE_UP                 WAKE UNLOCK
    key 109   PAGE_DOWN               WAKE UNLOCK
    key 107   MOVE_END                WAKE UNLOCK
    key 102   MOVE_HOME               WAKE UNLOCK
    key 86    EUROPE_2                WAKE UNLOCK

    As it is just plain text, you can just open it with root explorer, navigate to the file, long press it and select "Open in text editor". Here is when root previlege comes in. You have to mount the filesystem as R/W (the button on the upper left corner in Root-Explorer) before modifying the content of this file, and this requires root.

    Now it is straight forward. Just modify the file to reassign the keys. For example, change E to F in order to reassign the physical key "E" to mean "F" to the system. The complete keyboard layout for Colemak is as follows:
    Code:
    key 41    GRAVE                   WAKE UNLOCK
    key 2     1                       WAKE UNLOCK
    key 3     2                       WAKE UNLOCK
    key 4     3                       WAKE UNLOCK
    key 5     4                       WAKE UNLOCK
    key 6     5                       WAKE UNLOCK
    key 7     6                       WAKE UNLOCK
    key 8     7                       WAKE UNLOCK
    key 9     8                       WAKE UNLOCK
    key 10    9                       WAKE UNLOCK
    key 11    0                       WAKE UNLOCK
    key 12    MINUS                   WAKE UNLOCK
    key 13    EQUALS                  WAKE UNLOCK
    key 14    DEL                     WAKE UNLOCK
    key 15    TAB                     WAKE UNLOCK
    key 16    Q                       WAKE UNLOCK
    key 17    W                       WAKE UNLOCK
    key 18    F                       WAKE UNLOCK
    key 19    P                       WAKE UNLOCK
    key 20    G                       WAKE UNLOCK
    key 21    J                       WAKE UNLOCK
    key 22    L                       WAKE UNLOCK
    key 23    U                       WAKE UNLOCK
    key 24    Y                       WAKE UNLOCK
    key 25    SEMICOLON               WAKE UNLOCK
    key 26    LEFT_BRACKET            WAKE UNLOCK
    key 27    RIGHT_BRACKET           WAKE UNLOCK
    key 43    BACKSLASH               WAKE UNLOCK
    key 58    CAPS_LOCK               WAKE UNLOCK
    key 30    A                       WAKE UNLOCK
    key 31    R                       WAKE UNLOCK
    key 32    S                       WAKE UNLOCK
    key 33    T                       WAKE UNLOCK
    key 34    D                       WAKE UNLOCK
    key 35    H                       WAKE UNLOCK
    key 36    N                       WAKE UNLOCK
    key 37    E                       WAKE UNLOCK
    key 38    I                       WAKE UNLOCK
    key 39    O                      WAKE UNLOCK
    key 40    APOSTROPHE              WAKE UNLOCK
    key 28    ENTER                   WAKE UNLOCK
    key 42    SHIFT_LEFT              WAKE UNLOCK
    key 44    Z                       WAKE UNLOCK
    key 45    X                       WAKE UNLOCK
    key 46    C                       WAKE UNLOCK
    key 47    V                       WAKE UNLOCK
    key 48    B                       WAKE UNLOCK
    key 49    K                       WAKE UNLOCK
    key 50    M                       WAKE UNLOCK
    key 51    COMMA                   WAKE UNLOCK
    key 52    PERIOD                  WAKE UNLOCK
    key 53    SLASH                   WAKE UNLOCK
    key 54    SHIFT_RIGHT             WAKE UNLOCK
    key 29    CTRL_LEFT               WAKE UNLOCK
    key 217   SEARCH                  WAKE UNLOCK
    key 57    SPACE                   WAKE UNLOCK
    key 100   ALT_RIGHT               WAKE UNLOCK
    key 97    CTRL_RIGHT              WAKE UNLOCK
    key 115   VOLUME_UP               WAKE UNLOCK
    key 142   SLEEP                   WAKE UNLOCK
    key 105   DPAD_LEFT               WAKE UNLOCK
    key 103   DPAD_UP                 WAKE UNLOCK
    key 108   DPAD_DOWN               WAKE UNLOCK
    key 106   DPAD_RIGHT              WAKE UNLOCK
    key 158   BACK                    WAKE UNLOCK
    key 238   WIRELESS                WAKE UNLOCK
    key 237   BLUETOOTH               WAKE UNLOCK
    key 60    TOUCHPAD                WAKE UNLOCK
    key 224   BRIGHTNESS_DOWN         WAKE UNLOCK
    key 225   BRIGHTNESS_UP           WAKE UNLOCK
    key 61    BRIGHTNESS_AUTO         WAKE UNLOCK
    key 212   CAPTURE                 WAKE UNLOCK
    key 150   EXPLORER                WAKE UNLOCK
    key 62    SETTINGS                WAKE UNLOCK
    key 165   MEDIA_PREVIOUS          WAKE UNLOCK
    key 164   MEDIA_PLAY_PAUSE        WAKE UNLOCK
    key 163   MEDIA_NEXT              WAKE UNLOCK
    key 114   VOLUME_DOWN             WAKE UNLOCK
    key 113   VOLUME_MUTE             WAKE UNLOCK
    key 172   HOME                    WAKE UNLOCK
    key 139   MENU                    WAKE UNLOCK
    key 104   PAGE_UP                 WAKE UNLOCK
    key 109   PAGE_DOWN               WAKE UNLOCK
    key 107   MOVE_END                WAKE UNLOCK
    key 102   MOVE_HOME               WAKE UNLOCK
    key 86    EUROPE_2                WAKE UNLOCK

    However I wasn't able to remap the Capslock button. It seems that it is hardware-mapped along with the LED. When you have done the modification, save the file and restart the tablet. Now you can enjoy the new keyboard layout, WHEN NOT USING THE ASUS INPUT METHODS.

    So, in order to make the Asus input methods play nicely with you new layout, you also have to modify the .kl files in the /system/usr/xt9/keylayout directory. To most users the file of interest is qwerty-en_US.kl, but if you are like me and need to type in another language, remember to change the layout file of you language as well, e.g. qwerty-zh_TW.kl for Taiwanese people. The method is again the same as above. Note that this only reassigns keys on your physical keyboard, not those on the on-screen software keyboard.

    About some terminal emulators

    I use Better terminal emulator as my daily virtual terminal, and it has an annoying bug. If I start the app when using some input method other than the ASUS English keyboard, it doesn't change back for me, and sometimes there is no keyboard icon in the notification and even the key combination Ctrl+Shift doesn't work. If I just use Ctrl+Space then it will switch to an unknown input method and my modified keyboard layout is not detected. To fix this, simply switch to ASUS English keyboard before opening the terminal emulator (say, opening the google search and choose the input method).

    About ESC and BACK

    Now if you also use this tablet to SSH into your server to do some maintanence stuff, you will notice that there is one thing missing on the keyboard dock, which is the ESC key. In the place of the ESC, there is the BACK key which will take you out from the terminal you are using, which is quite frustrating especially if you use vi or vim on your server. To fix that, simply change the BACK key to ESCAPE in the asusec.kl file. Now if you still miss a back key which could come in handy when just using the tablet, I would suggest mapping the WIRELESS key to the right to BACK, as I can't really think of a situation where you really need to quickly toggle the Wifi on and off. Most (or all, since I didn't experiment with all the keys) of the shortcut keys can be thus shuffled around.

    Remapping Function keys to F1~F12 (Partial Solution)

    Sometimes it is desirable to have the usual function keys like F1~F12 handy. The above method can be applied to change the first row to these function keys. Say we can just change BLUETOOTH to F1 in the file asusec.kl. However at most times it is more useful to retain the original behavior of those keys, which is one of the reasons that the keyboard dock is so handy. I found a partial solution to the problem.

    After changing, say BLUETOOTH to F1, in order to preserve the BLUETOOTH toggle functionality, we can modify the following file
    Code:
    /system/usr/keychars/asusec.kcm
    Again it is a plain text file. The idea is to let the original BLUETOOTH key to act as F1, but Shift+F1 will let us toggle BLUETOOTH as we want. In order to accomplish this, add to the end of the file
    Code:
    key F1 {
        shift:                    fallback BLUETOOTH
    }
    Ideally this will allow us to access the toggle functionality whenever we press Shift+F1. However this is labelled as a partial solution because this combo only works in an input field, like that of Google search. I'm still investigating how to make it work in general situations and will update any findings here.

    OK, that's it. This is my first serious post after a year of silent surfing on the forum. Hopefully this will be useful to some people. If I posted on the wrong section or did anything inappropriate, please tell me immediately as I'm still relatively new to this forum.
    4
    Easy solution for fixing UK layout

    So I see that some of you have been trying to fix the issues with the @ and ", etc getting swapped around when set to the default android keyboard. One option to fix this is to edit the asusec.kcm file in /system/usr/keychars. This will do the job, but there are quite a few keys that need editing to get everything where it should be.

    A much, much easier solution is to simply do the following:
    1. copy the qwerty-en_GB.kcm file from /system/usr/xt9/keychars,
    2. paste it into /system/usr/keychars
    3. rename asusec.kcm to asusec.kcm.bak
    4. rename the qwerty-en_GB.kcm that you just pasted to asusec.kcm
    5. Remove the transformer from the dock
    6. Shut down
    7. Power back on
    8. Replace the tablet in the dock

    You should now find that all keys are correctly mapped to the UK layout :)

    I assume this will work for any language, but it is only UK English that I have tested.

    ---------- Post added at 09:36 PM ---------- Previous post was at 09:31 PM ----------

    A few people were asking if it is possible to map the app switcher to a key. Whilst not an exact solution, I did notice that using Alt+Tab will switch between apps, just as it does on a windows PC.

    I should state that I am not using the stock ROM, so it is possible that this is an extra function of my custom ROM, but I doubt it. I have also re-mapped my Alt key to ALT_LEFT (by default it is ALT_RIGHT. This may or may not make a difference. Somebody with a stock ROM will have to test.

    Hope this helps somebody
    3
    Great function key layout + dual Qwerty/Dvorak layout

    Hey everyone,
    After lots of fiddling I've got a great keyboard layout I wanted to share.
    1. First thing is I hacked browser button to go to my preferred browser using instructions on this post: http://xdaforums.com/showthread.php?t=1497624
    2. Second I modified asusdec.kl and asusdec.kcm to achieve following keyboard layout.
    (red buttons are active when CAPSLOCK is on, red buttons with an arrow next to them are CAPSLOCK on + Shift key pressed)
    (search icon in green is: ALT+SPACE)
    (Letters in Blue correspond to Dvorak layout and are active when SCRL_LCK button is on)


    Attached are the .kl and .kcm files zipped. You can use the instructions on first page of this post to install them.
    2
    Hi guys, i made an application for doing that more faster : http://xdaforums.com/showthread.php?t=1607148
    2
    Awesome post bytheway. This is a great tool right here.

    One thing that i just noticed about the docks keyboard. Some of the keys (mainly the forward slash and backslash) are different sizes than the other keys. This will cause problems with other layouts, such as Dvorak (forward slash is replaced by Z and left bracket is replaced by forward slash).

    No way around it, unless you wanna make custom keys or just make your own version of the layout. I'm making mine into Dvorak, but leaving the forward slash where its at and replacing left bracket with z. it's going to take some getting used to, but how often does one use Z anyway?

    Anyway, just thought i would point that out to you guys. Again, thanks for the info on switching the layouts!

    EDIT: Here is my version of the dvorak layout for the TF101 dock

    The forward slash and the Z keys are the only ones out of place, due to the different sizes of the keys.

    Code:
    key 41    GRAVE                   WAKE UNLOCK
    key 2     1                       WAKE UNLOCK
    key 3     2                       WAKE UNLOCK
    key 4     3                       WAKE UNLOCK
    key 5     4                       WAKE UNLOCK
    key 6     5                       WAKE UNLOCK
    key 7     6                       WAKE UNLOCK
    key 8     7                       WAKE UNLOCK
    key 9     8                       WAKE UNLOCK
    key 10    9                       WAKE UNLOCK
    key 11    0                       WAKE UNLOCK
    key 12    LEFT_BRACKET            WAKE UNLOCK
    key 13    RIGHT_BRACKET           WAKE UNLOCK
    key 14    DEL                     WAKE UNLOCK
    key 15    TAB                     WAKE UNLOCK
    key 16    APOSTROPHE              WAKE UNLOCK
    key 17    COMMA                   WAKE UNLOCK
    key 18    PERIOD                  WAKE UNLOCK
    key 19    P                       WAKE UNLOCK
    key 20    Y                       WAKE UNLOCK
    key 21    F                       WAKE UNLOCK
    key 22    G                       WAKE UNLOCK
    key 23    C                       WAKE UNLOCK
    key 24    R                       WAKE UNLOCK
    key 25    L                       WAKE UNLOCK
    key 26    Z                       WAKE UNLOCK
    key 27    EQUALS                  WAKE UNLOCK
    key 43    BACKSLASH               WAKE UNLOCK
    key 58    CAPS_LOCK               WAKE UNLOCK
    key 30    A                       WAKE UNLOCK
    key 31    O                       WAKE UNLOCK
    key 32    E                       WAKE UNLOCK
    key 33    U                       WAKE UNLOCK
    key 34    I                       WAKE UNLOCK
    key 35    D                       WAKE UNLOCK
    key 36    H                       WAKE UNLOCK
    key 37    T                       WAKE UNLOCK
    key 38    N                       WAKE UNLOCK
    key 39    S                       WAKE UNLOCK
    key 40    MINUS                   WAKE UNLOCK
    key 28    ENTER                   WAKE UNLOCK
    key 42    SHIFT_LEFT              WAKE UNLOCK
    key 44    SEMICOLON               WAKE UNLOCK
    key 45    Q                       WAKE UNLOCK
    key 46    J                       WAKE UNLOCK
    key 47    K                       WAKE UNLOCK
    key 48    X                       WAKE UNLOCK
    key 49    B                       WAKE UNLOCK
    key 50    M                       WAKE UNLOCK
    key 51    W                       WAKE UNLOCK
    key 52    V                       WAKE UNLOCK
    key 53    SLASH                   WAKE UNLOCK
    key 54    SHIFT_RIGHT             WAKE UNLOCK
    key 29    CTRL_LEFT               WAKE UNLOCK
    key 217   SEARCH                  WAKE UNLOCK
    key 57    SPACE                   WAKE UNLOCK
    key 100   ALT_RIGHT               WAKE UNLOCK
    key 97    CTRL_RIGHT              WAKE UNLOCK
    key 115   VOLUME_UP               WAKE UNLOCK
    key 142   SLEEP                   WAKE UNLOCK
    key 105   DPAD_LEFT               WAKE UNLOCK
    key 103   DPAD_UP                 WAKE UNLOCK
    key 108   DPAD_DOWN               WAKE UNLOCK
    key 106   DPAD_RIGHT              WAKE UNLOCK
    key 158   BACK                    WAKE UNLOCK
    key 238   WIRELESS                WAKE UNLOCK
    key 237   BLUETOOTH               WAKE UNLOCK
    key 60    TOUCHPAD                WAKE UNLOCK
    key 224   BRIGHTNESS_DOWN         WAKE UNLOCK
    key 225   BRIGHTNESS_UP           WAKE UNLOCK
    key 61    BRIGHTNESS_AUTO         WAKE UNLOCK
    key 212   CAPTURE                 WAKE UNLOCK
    key 150   EXPLORER                WAKE UNLOCK
    key 62    SETTINGS                WAKE UNLOCK
    key 165   MEDIA_PREVIOUS          WAKE UNLOCK
    key 164   MEDIA_PLAY_PAUSE        WAKE UNLOCK
    key 163   MEDIA_NEXT              WAKE UNLOCK
    key 114   VOLUME_DOWN             WAKE UNLOCK
    key 113   VOLUME_MUTE             WAKE UNLOCK
    key 172   HOME                    WAKE UNLOCK
    key 139   MENU                    WAKE UNLOCK
    key 104   PAGE_UP                 WAKE UNLOCK
    key 109   PAGE_DOWN               WAKE UNLOCK
    key 107   MOVE_END                WAKE UNLOCK
    key 102   MOVE_HOME               WAKE UNLOCK
    key 86    EUROPE_2                WAKE UNLOCK