FORUMS
Remove All Ads from XDA

dvorak with ESC external keyboard layout, needs CTL

20 posts
Thanks Meter: 0
 
By pengyo, Junior Member on 17th August 2011, 10:02 PM
Post Reply Email Thread
The section at the end of this post maps an extrnal keyboard to dvorak.
Note, the escape key sends escape instead of going back as in the original
qweryt layout. I have not figured out how to send the Ctrl modifier key.
If someone can figure out how to put that in the position of the Cap Lock key,
that would be great.
This may help:
developer.android.com/reference/android/view/KeyEvent.html

To make this work, copy the keycodes into a file, say dvorak.kl, then make backups
of your qwerty layout and copy:


Code:
su
cp /system/usr/keylayout/en_us.kl /system/usr/keylayout/en_us_backup.kl 
cp dvorak.kl /system/usr/keylayout/en_us.kl 
cp /system/usr/keylayout/gpio-keys.kl /system/usr/keylayout/gpio-keys_backup.kl
cp dvorak.kl /system/usr/keylayout/gpio-keys.kl
Then select English (us) from your Settings-> Language and keyboard-> Select external keyboard layout menu.
Don't know how to make dvorak show up as an option.

Code:
key 399   GRAVE
key 2     1
key 3     2
key 4     3
key 5     4
key 6     5
key 7     6
key 8     7
key 9     8
key 10    9
key 11    0
key 158   BACK              WAKE_DROPPED
key 230   SOFT_RIGHT        WAKE
key 60    SOFT_RIGHT        WAKE
key 107   ENDCALL           WAKE_DROPPED
key 62    ENDCALL           WAKE_DROPPED
key 229   MENU              WAKE_DROPPED
key 139   MENU              WAKE_DROPPED
key 59    MENU              WAKE_DROPPED
key 127   MENU              WAKE_DROPPED
key 217   SEARCH            WAKE_DROPPED
key 228   POUND
key 227   STAR
key 231   CALL              WAKE_DROPPED
key 61    CALL              WAKE_DROPPED
key 232   DPAD_CENTER       WAKE_DROPPED
key 108   DPAD_DOWN         WAKE_DROPPED
key 103   DPAD_UP           WAKE_DROPPED
key 102   HOME              WAKE
key 105   DPAD_LEFT         WAKE_DROPPED
key 106   DPAD_RIGHT        WAKE_DROPPED
key 115   VOLUME_UP
key 114   VOLUME_DOWN
key 116   POWER             WAKE
key 212   CAMERA

key 16    APOSTROPHE 
key 17    COMMA 
key 18    PERIOD 
key 19    P
key 20    Y
key 21    F
key 22    G
key 23    C
key 24    R
key 25    L
key 26    SLASH 
key 27    EQUALS
key 43    BACKSLASH

key 30    A
key 31    O 
key 32    E
key 33    U 
key 34    I 
key 35    D 
key 36    H 
key 37    T
key 38    N 
key 39    S 
key 40    MINUS
key 14    DEL


key 44    SEMICOLON
key 45    Q
key 46    J
key 47    K
key 48    X
key 49    B
key 50    M
key 51    W
key 52    V
key 53    Z
key 28    ENTER
        
key 56    ALT_LEFT
key 100   ALT_RIGHT
key 42    SHIFT_LEFT
key 54    SHIFT_RIGHT
key 15    TAB
key 57    SPACE
key 150   EXPLORER
key 155   ENVELOPE        

key 12    LEFT_BRACKET 
key 13    RIGHT_BRACKET 
key 215   AT

key 125   HOME              WAKE
key 172   HOME              WAKE
key 1     ESCAPE            WAKE_DROPPED
key 173   DPAD_CENTER       WAKE_DROPPED

key 71    7
key 72    8
key 73    9
key 74    MINUS
key 75    4key 76    5
key 77    6
key 78    PLUS
key 79    1
key 80    2
key 81    3
key 82    0
key 83    PERIOD
key 55    STAR
key 96    ENTER
key 98    SLASH
key 121   COMMA
 
 
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes