xuyunhong / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

No access to numeric symbols using Asus Transformer keyboard dock #459

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Hit either Shift key using the Asus Transformer TF101 Keyboard dock; The 
small triangle appears at the top of the cursor denoting (I'm guessing...) that 
the next character typed will be "shifted"
2. Press any of the numbered keys (0-9) to attempt to type a symbol ("!", "@", 
etc. but most importantly, "(" and ")")

What is the expected output? What do you see instead?
 Expected output: Symbol that corresponds to the numeric key pressed.
 Actual output: A tilde from numbers 5 - 9, and nothing is displayed from keys 1 - 4

What version of the product are you using (you can see this by using Menu
-> About in the Host List)?
ConnectBot 1.7.1

What type of system are you trying to connect to?
 Unix machine with a bash shell

If you are able to connect, what is the output of "echo $TERM", "uname -a",
and any other relevant information on the host?
echo $TERM: "screen"
uname -a: Linux...2008 i686 athlon i386 GNU/Linux

Please provide any additional information below.
   There was one point where the keys functioned completely normally with proper shift functions. During this time period though, pressing the "shift" key did not alter the cursor the way it had before, and "alt" not did nothing (it was adding a small triangle on the bottom of the cursor). I have not been able to recreate this though.

Original issue reported on code.google.com by joeshmo...@gmail.com on 30 May 2011 at 10:16

GoogleCodeExporter commented 9 years ago
For me, this is also a "hot" issue - I see no alternative to ConnectBot, so we 
better fix it here somehow.

It would be most appreciable to have a way to map Escape to somewhere, too, 
since the TF keyboard has no escape key.

Original comment by elmin...@gmail.com on 15 Jun 2011 at 2:13

GoogleCodeExporter commented 9 years ago
I have a slightly modified fork of connectbot for asus transformer, you can try 
it.

https://github.com/downloads/lorantkurthy/connectbot/ConnectBot.apk

(The repo is at https://github.com/lorantkurthy/connectbot)

Original comment by kurt...@gmail.com on 20 Jun 2011 at 6:17

GoogleCodeExporter commented 9 years ago
The patched fork is working great for me. Thanks!

Original comment by fmhi...@gmail.com on 20 Jun 2011 at 6:43

GoogleCodeExporter commented 9 years ago
I tried the fork (had to uninstall the old ConnectBot due to the changed 
signature on the package) and don't see any difference.

What was supposed to have changed?  Shift-keys don't work any differently, 
Control doesn't work, nor does Alt.

What's working?

Original comment by kever...@gmail.com on 20 Jun 2011 at 7:07

GoogleCodeExporter commented 9 years ago
Under the "Settings" menu, there's an option for "Asus Transformer with 
keyboard". Select that and give it a try.

Original comment by fmhi...@gmail.com on 20 Jun 2011 at 7:25

GoogleCodeExporter commented 9 years ago
Ah, ok.  That makes sense.

Still the Alt-1 through Alt-0 and Alt-a aren't working (which would be useful 
for irssi), but at least having Ctrl and the symbols above the numbers work is 
a big step forward.

Thanks.

Original comment by kever...@gmail.com on 20 Jun 2011 at 7:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The Alt-key will not work, because the alt on the transformer is not a modifier 
key, it sends a KeyEvent.KEYCODE_ALT_RIGHT keycode, pressed together with other 
keys sends nothing. However irssi works, try with Search-0, Search-1, Search-a 
(Press Search, release Search, press 0). From irssi documentation:

Meta-1, Meta-2, .. Meta-0 - Jump directly between windows 1-10
Clearly the easiest way is to use Meta-number keys. And what is the Meta key? 
ESC key always works as Meta, but there's also easier ways. ALT could work as 
Meta

On transformer the alt key is not a standard alt key, so you can use the Meta 
key, which is ESC, and ESC is mapped to the Search key (just tried and it 
works).

Original comment by kurt...@gmail.com on 21 Jun 2011 at 7:05

GoogleCodeExporter commented 9 years ago
Thanks, Kurt! Your modified version of connectbot works great. Search makes a 
perfect alternative meta key, since it is where alt is on most non-mac 
keyboards, too.

Alt would make a great meta key too -- since it's there -- but this is 
seriously exactly what I was looking for.

Original comment by rickybr...@gmail.com on 23 Jun 2011 at 7:53

GoogleCodeExporter commented 9 years ago
IMORTANT: for all who are working with the modified asus transformer version: 
switch the option "Asus Transformer with keyboard" ***BEFORE*** you connect to 
the host, i made it the wrong way and was wondering, why the arrow keys and 
backspace were not working ;)

Original comment by michael....@gmail.com on 23 Jun 2011 at 4:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
for editor "joe" i have to press "Alt Gr/Alt" + Enter to get a newline, is 
there any way to fix that ?

Original comment by michael....@gmail.com on 23 Jun 2011 at 4:34

GoogleCodeExporter commented 9 years ago
Thank you for all the comments! I'm glad you find the modofication useful.
Ricky you are right, the alt would make a good meta key too, but because the 
Search is the meta, the normal alt+enter combination works in joe :) (the real 
alt key,  on the right side of the space key).

Original comment by kurt...@gmail.com on 23 Jun 2011 at 5:17

GoogleCodeExporter commented 9 years ago
dear kurt: can you explain why enter works in "vi" but not in "joe" ? i don´t 
understand this ;) would be nice to see the "asus tranformer patch" in the next 
normal version included to stay up2date in the future ;)

Original comment by bertelsh...@googlemail.com on 23 Jun 2011 at 5:20

GoogleCodeExporter commented 9 years ago
Michael, thank you for the clarification, the documentation is not my strength 
:) To set the option in the menu is a bit annoying for me too, but I can not 
find a way to detect that the program is running on an Asus Transformer (this 
is an android restriction). If anybody knows a solution, please feel free to 
contact me, or leave a comment here.

Original comment by kurt...@gmail.com on 23 Jun 2011 at 5:29

GoogleCodeExporter commented 9 years ago
fwiw, enter doesn't work in emacs, either.  I was using Control-M to get the 
desired effect.  Interesting to see that Alt+Enter is another way of getting 
that effect.

Also, Control-X (another common emacs combination) and Control-U are both 
overloaded.  Control-X brings up a copy & paste dialog, and Control-U brings up 
a URL Scan.  They both do their other function as well, so this is a little 
confusing.  Would it be possible to move those functions onto a less common 
combination, perhaps Fn-X and Fn-U ?

Looking forward to this patch being merged into the main branch.

Original comment by kever...@gmail.com on 23 Jun 2011 at 5:32

GoogleCodeExporter commented 9 years ago
kurt, setting the option is not that problem, my comment should only be a 
"notice" so that other don´t make the same mistake... i would be very happy if 
"ENTER" works in the "joe" ;-) and to see the "asus option" in the next 
official release of connectbot ;-)

Original comment by bertelsh...@googlemail.com on 23 Jun 2011 at 5:33

GoogleCodeExporter commented 9 years ago
Dear bertelsh and other joe users, this is quite strange, that in joe you have 
to use the alt+enter combination, I will try to fix it soon.

Original comment by kurt...@gmail.com on 23 Jun 2011 at 5:35

GoogleCodeExporter commented 9 years ago
Sorry for the ctrl-x shortcut, that is ctrl-c in the original version, but on 
linux that is also confusing. Unfortunately the Fn key works only with the up, 
down, left, right arrows, with other keys has no effect, the program can not 
see it. If anybody has another idea for shortcut keys, please, leave a comment.

Original comment by kurt...@gmail.com on 23 Jun 2011 at 5:42

GoogleCodeExporter commented 9 years ago
Imho there is not much chance to merge this patch into the main branch, because 
the handling of the ctrl key is not standard on android (see 
https://github.com/kruton/connectbot/pull/3#issuecomment-444854)

Original comment by kurt...@gmail.com on 23 Jun 2011 at 5:47

GoogleCodeExporter commented 9 years ago
Still i will try to keep my fork in sync with the master, the patch affects 
only 1 function.

Original comment by kurt...@gmail.com on 23 Jun 2011 at 5:50

GoogleCodeExporter commented 9 years ago
dear kurt: maybe you can make a seperate APP at the market so that we are able 
to get auto-updates ??

Original comment by bertelsh...@googlemail.com on 23 Jun 2011 at 5:59

GoogleCodeExporter commented 9 years ago
The separate app is a good idea, i will make it after i correct the alt+enter 
and the shortcut problems.

Original comment by kurt...@gmail.com on 23 Jun 2011 at 6:02

GoogleCodeExporter commented 9 years ago
FWIW, you can check the model by something like:

Build.MODEL.equals("Transformer TF101");

Original comment by kever...@gmail.com on 23 Jun 2011 at 6:46

GoogleCodeExporter commented 9 years ago
Kurt, cool, that definitely makes the shift & control keys work on the 
Transformer dock... however... :) It has some other issues I didn't have before:

- It drops the connection when I rotate.  (Settings of rotate = automatic)  It 
rotates, but as soon as I type a character, boom, drops it.  (Claims the host 
has dropped it, but it didn't; the u n-modded version was rock solid before on 
rotates.)

- When undocked it doesn't display right when it connects.  It shows the last 
few lines of host output after I log in, but not the whole login output.  E.g. 
if my login stuff prints 50 lines of output, the top of the screen starts with 
just the last 2-3.  No way to scroll up to see them either.  (This is with menu 
bar set to hidden and scroll back at 900 lines.)

- The un-modded version showed Settings in the bottom status bar area, but this 
version moves that to a new, extra top nav area.  In docked/landscape mode that 
takes a lot of space.  If I hide the top area, then there's no Settings icon 
(which otherwise would be in the bottom nav area; so you can't get to Settings 
when undocked with top menu hidden).

Also want to +1 the idea of having the Transformer keyboard  fixes in the main 
branch.

Original comment by ab-adnon...@tech-soft.com on 23 Jun 2011 at 7:12

GoogleCodeExporter commented 9 years ago
Kever, thank you for the tip, it works.
New version (automatic transformer detection, no option in settings, enter 
works in joe and emacs without alt, alt key=search key=meta, shortcuts 
disabled) at 
https://github.com/downloads/lorantkurthy/connectbot/ConnectBot1.apk

Original comment by kurt...@gmail.com on 23 Jun 2011 at 7:34

GoogleCodeExporter commented 9 years ago
Dear ab-adnon, which version you mean un-modded? Master branch from github, or 
the app from Market? Because the github version has other bugs as well on 
android 3.0-3.1 thanks to the new android feature strictmode.

Original comment by kurt...@gmail.com on 23 Jun 2011 at 7:38

GoogleCodeExporter commented 9 years ago
I dont understand why ConnectBot doesnt have a map feature?  it would be 
awesome to be able to map the control key to the search key on the android 
device for example.

Original comment by tgwa...@gmail.com on 23 Jun 2011 at 7:48

GoogleCodeExporter commented 9 years ago
Kurt, ha, ok, hadn't even thought about that, duh!  I grabbed the app from the 
Market.  Didn't even stop to think it would be significantly different.

Are you or is anyone working on fixing the 3.x bugs?

Thanks!

Original comment by ab-adnon...@tech-soft.com on 23 Jun 2011 at 7:52

GoogleCodeExporter commented 9 years ago
dear tgwa, you are right, but on other keyboards for android phones you usually 
type with two thumbs, on the transformer you can type like on a notebook. So on 
an android you type ctrl-c like: press ctrl, release it, press c. On the 
transformer you can press the two keys together. So the two keyboard handling 
function is quite different, and the key mapping feature would be not enough.

Original comment by kurt...@gmail.com on 23 Jun 2011 at 7:58

GoogleCodeExporter commented 9 years ago
Dear ab-adnon, i'm working on it, 2 bugs are already fixed , which rendered the 
github version unusable on honeycomb (after login, connectbot closed connection 
on first keypress). The mentioned bugs are quite similar, but I need some time 
to find them, and the keyboard issues are more important to fix.

Original comment by kurt...@gmail.com on 23 Jun 2011 at 8:02

GoogleCodeExporter commented 9 years ago
hey kurt,
  i was more speaking in general.  i have the thunderbolt it would be cool instead of tapping the screen to bring up control, then tapping it.. to just tap search -> key.  would also be cool to map esc to back as well..  or atleast map the keys to the volume keys.

Original comment by tgwa...@gmail.com on 23 Jun 2011 at 8:09

GoogleCodeExporter commented 9 years ago
Dear tgwa, yes, it would be cool. In future versions I will include options 
into the settings for key mapping, but only for the transformer.

Original comment by kurt...@gmail.com on 23 Jun 2011 at 8:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The "new version" seems to be a regression.  "Enter" in emacs/joe stopped 
working, "Ctrl-U" now brings up the URL scan again.

Why was this put out? What's supposed to be new/fixed?

Original comment by kever...@gmail.com on 11 Jul 2011 at 8:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry, that was not the final version, but now it is.

url is the same: 
https://github.com/downloads/lorantkurthy/connectbot/ConnectBot.apk

This "new version" is new, because in the meantime there were some improvments 
in the generic hardware keyboard handling, and with a bit of luck this version 
can be merged into the main branch.

Original comment by kurt...@gmail.com on 11 Jul 2011 at 10:34

GoogleCodeExporter commented 9 years ago
thanks kurt, this version of connectbot works great on the TF101 keyboard. The 
title bar is a little bit distracting but appart from that I found no issue so 
far.

Original comment by dinh....@gmail.com on 12 Jul 2011 at 8:20

GoogleCodeExporter commented 9 years ago
Thanks for this great improvement! It turned my Transformer from a nice widget 
to a full-fledged terminal ;-) I hope it will get merged into main.

Only minor improvement I'd love is a nice mapping for ESC (this would make 
working in vi a lot nicer). Back probably doesn't work (or isn't a good idea). 
If possible Ctrl-Back might be a feasible approach.

Original comment by citizen5263@gmail.com on 18 Jul 2011 at 7:53

GoogleCodeExporter commented 9 years ago
I think that could work as well, catching onBack(), and doing "back" only if 
pressed twice within a second or so. At least I wish there will be an option 
for something like this, so I can work on my transformer as well!

Original comment by grizza...@gmail.com on 18 Jul 2011 at 7:58

GoogleCodeExporter commented 9 years ago
I have the latest APK that is linked from this page and things are initially 
working well. Thans for the patch. Any idea when the TF changes will go into 
the main apk available form the android market?

Original comment by aer...@gmail.com on 20 Jul 2011 at 12:34

GoogleCodeExporter commented 9 years ago
The model name of 3G version is "Transformer TF101G", please consider to add it.
Thanks for your great work.

Original comment by sdd...@gmail.com on 11 Aug 2011 at 7:48

GoogleCodeExporter commented 9 years ago
Hey guys.  Just an FYI, we can remap the keys on the Transformer dock.  Here's 
a link to the instructions I followed.
http://forum.xda-developers.com/showthread.php?t=1144204

Of course, the Transformer needs to be rooted to be able to do this.  Good luck!

Original comment by ssr...@gmail.com on 12 Aug 2011 at 6:00

GoogleCodeExporter commented 9 years ago
Thanks Kurt, that fork is incredibly useful!

Original comment by clareslo...@gmail.com on 18 Aug 2011 at 12:43

GoogleCodeExporter commented 9 years ago
This fork works really well for me. Something like this should be incorporated 
in to the main branch of the program, it really should!

Original comment by mds...@gmail.com on 21 Aug 2011 at 8:27

GoogleCodeExporter commented 9 years ago
Just find this thread after posting for the same issue. I downloaded the latest 
version  
 mentionned in this thread and everything is working fine. Thank you very much.

Original comment by sslivit...@gmail.com on 7 Sep 2011 at 6:50

GoogleCodeExporter commented 9 years ago
Found this post via a Google search for a "good" SSH client for the ASUS.  I 
really appreciate the fork, works very much like puTTY.  Now I just need to 
break the muscle memory of hitting the back button to escape in vi :-/

Original comment by Alaor...@gmail.com on 8 Sep 2011 at 11:31

GoogleCodeExporter commented 9 years ago
I'm using 'back' as escape, I've modified the lkurty version.
But I didn't make (and don't have the time) any options to have a back button. 
I could make it default though on TF101 and just back twice would mean a real 
back.

If anyone interested, I can upload either version on the weekend, maybe even do 
a push request to one of the forks or this, though I haven't done such thing yet

Original comment by grizza...@gmail.com on 9 Sep 2011 at 6:49