New issue 558 by benn.bol...@gmail.com: Droid 4 hardware keyboard
shift-number and tab keys not mapped
http://code.google.com/p/connectbot/issues/detail?id=558
Good day:
On the Motorola Droid 4, the shift-number characters (!@#$%^&*() from 1 to
0) are not mapped in correctly for ssh connections. Trying to use them in
a 'local' connection generates inputs like: ~2 for shift-1, ~3 for shift-2,
and so forth.
Additionally, the tab key produces no result in ssh nor in local.
I would be happy to run a scancode mapper, if necessary, or provide logcat
details as appropriate.
I am having issues with a lack of most of the helper keys mentioned in the
documentation (as in, the Droid 4 doesn't have them, or if it does I don't
know what is what) and as such can't enter a number of characters.
It is also funky with the Lapdock (500 at least). The 1-0 and such keys
work fine with shift, but a number of others either ignore shift or end up
with entirely incorrect output.
Listing of what I saw with the Lapdock (on a Droid4, probably acts the same
on other phones like the Razr):
`;[]\ - Shift ignored, should be ~:{}|
,. - Shift gives ;: but should be <>
CTRL - Acts like Menu button
ALT - Gives symbols like shift, but lowercase letters. NOTE: Alt+` gives ~
where Shift+` does not.
Couldn't get fn+keys to generate function key hits.
I am also willing to run things like a scancode mapper or similar, on and
off of the Lapdock.
I, too, would like some fixes for the droid 4. getting the shift-number
symbols would be great; I would also love to see the pipe '|' symbol. using
the latest version (ConnectBot-git-master-2011-12-19_18-30-54) seems to
have fixed the tab key problem.
I, too, would like some fixes for the droid 4. getting the shift-number
symbols would be great; I would also love to see the pipe '|' symbol. and,
being a long-time vi user, I really need an escape key!
with a little more playing around, I found that the 'ok' key sends 'ctrl',
so pressing it twice sends escape.
Running the keytest application for the number row (1-0)
1234567890
!@#$%^&*()
code meta scancode
sym 63 4 162
lsh 59 65 42
tab 61 0 15
mic 111 0 15 (shift-tab)
cap 114 222
1 8 0 2
2 9 0 3
3 10 0 4
4 11 0 5
5 12 0 6
6 13 0 7
7 14 0 8
8 15 0 9
9 16 0 10
0 7 0 11
! 8 65 2 (must hold shift while pressing the number)
@ ... all the rest are the same as above, just with 65 for meta ...
Hope this helps. Program I used was
https://github.com/chrisboyle/keytest/downloads, and if necessary I can
pull the keymap file from the device (or find someone who has rooted it to
do so).
Cheers,
--B
I'm looking at a Droid 4 for vi operations as well. I've got an X right
now. Do you folks know if there is a forum or group of some sort that is
into using ssh and vi with droids? Or am I talking to the group? ;-)
I don't imagine the 4 is rooted yet, but I haven't looked into it. Just
noticed the same issues with !|, lucked into thrashing the ok twice for
esc, but haven't figured anything out for !|. Is there a way we can use
the keymap info from benn?
For those that want/need support for the hardware keyboard right away, the
VX clone works quite well for me with and without the Lapdock.
Which doesn't mean I am not willing to help get that working in the core
here, but I figured it is useful information for others fighting with this.
Dons - fwiw, vim +ssh, and yes, it is rooted.
I confirm that the vx clone works as expected.
A question and a comment:
1) What is a "vx clone"? Google tells me it's a paintball gun, but I have
my doubts...
2) The Droid 4 keyboard doesn't have an "ALT" key, so advice about
synthesizing characters using SHIFT+ALT isn't much use. Is there an ALT key
equivalent?
I'm investigating the VX Connectbot app myself. I'm pleased it allows
number shift to access the usual special keys, and the Droid 4 SYM key
works OK for the pop-up special character picker. (This latter appears to
be "normal" Droid 4 HW keyboard behavior, though.)
Still, I could wish for actual on-keyboard access to |{}\ and the like.
On a semi-unrelated questiom, what's the ALT key on the Droid 4 slider
keyboard? (In either normal or VX Connectbot)
As far as I know there is no ALT key, quite a glaring omission. I'd
probably map the CapsLock key for the purpose, since capslock is pretty
unnecessary on its own.
This seems to be quite a common problem on Android devices with physical
keyboards. See also Issue#459 for the Asus Transformer, there's a patch
posted there that works for them. It seems to me this problem should have a
generic fix though, not a model-specific patch.
My problem is that there is no Shift key on the right side. When I want to
capitalize a letter on the left side of the keyboard, I have to bend my
fingers into a pretzel to get it done. I would change that OK key to Shift,
but I'm not comfortable rooting my phone.