vx/connectbot — pull request #7 by tajuma (2012-04-14 19:37:49+00:00)
Title: Asus Transformer prime keyboard handling (Finnish layout)

HI,

Here is Asus TFP 201 hw keyboard handling code. Currently it only support Finnish kb layout, as that is the one I happen to have.

It uses the key (§ ½) in left top corner (just below Back) as ESC.

§ -> ESC
SHIFT + § -> ascii tilde
CTRL + § -> ascii hat
SHIFT + SPACE -> CTRL SPACE (ascii 0x00)
CTRL + number key -> Fn key
ALT + CTRL [ ] \ -> send as control key

I have no idea how to handle other layouts as IMO the Asus keyboard gives quite inconsistent keycodes out, and for some keys (like dead chars) it simply outputs anything.