lujinfeifly / connectbot

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

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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 8 years ago
re #50 : Could you post the patch somewhere? I am moving house this week but 
will hopefully find time in a week or so to have a hack at all these keyboard 
issues.  Unless someone else beats me to it. :)

Original comment by AlexHut...@gmail.com on 9 Sep 2011 at 1:23

GoogleCodeExporter commented 8 years ago
This replaces back with 'esc', something like checking if it has been already 
pressed once then it should do the 'back' action (or, have a menu item do the 
Activity.onBackPressed() call) needs to be done in order to be connected to 
multiple hosts. I hope it will help.

in src/org/connectbot/ConsoleActivity.java, just put it somewhere in the 
activity if the patch doesn't apply

@@ -589,6 +589,15 @@ public class ConsoleActivity extends Activity {
                });

        }
+       @Override
+       public void onBackPressed() {
+               View flip = findCurrentView(R.id.console_flip);
+               if (flip == null) return;
+               TerminalView terminal = (TerminalView)flip;
+
+               TerminalKeyListener handler = terminal.bridge.getKeyHandler();
+               handler.sendEscape();
+       }

Original comment by grizza...@gmail.com on 11 Sep 2011 at 5:23

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Fork works perfectly. Any chance we can get it merged with mainline? ;)

Original comment by rob.pe...@gmail.com on 14 Oct 2011 at 2:34

GoogleCodeExporter commented 8 years ago
Thanks for the fork, I was about to try to code a fix myself.

Original comment by mmfolke...@gmail.com on 16 Oct 2011 at 12:04

GoogleCodeExporter commented 8 years ago
On the fork for Asus Transformer Docking Keyboard, could you make 'shift + 
backspace' map to a forward delete (as it does in the rest of android?). 
Thanks!!

Original comment by mmfolke...@gmail.com on 19 Oct 2011 at 7:05

GoogleCodeExporter commented 8 years ago
I'm wondering if someone can create a WIKI page that documents the current 
keyboard settings.  The Comment #39 APK works great, with the search button now 
being the escape key.

Previously the shift-1 would send the F1, but now it appropriately sends an 
"!".  This now begs the question of how one would send an F1 if that was indeed 
what they needed.

Also, please add a comment when this change makes it to the regularly 
distributed application in the Marketplace, so we can all switch back to using 
that one (which gets automatic updates).

Thank you for all this work!  This is making the transformer so much more of a 
laptop replacement for me (better battery life, etc, etc).

Original comment by russellm...@gmail.com on 28 Oct 2011 at 1:53

GoogleCodeExporter commented 8 years ago
I've made a simple debug build with grizza's patch. I don't know enough to 
implement his suggestions regarding allowing back via menu or double press, but 
as a vi user I need ESC to be easy to use.

https://github.com/downloads/dschep/connectbot/ConnectBot-debug.apk

Original comment by dsc...@gmail.com on 9 Nov 2011 at 3:08

GoogleCodeExporter commented 8 years ago
APK in comment #39 works great, thanks! Would love to see this get synced into 
main so I could just download from market.

Original comment by tho...@xyz.pp.se on 10 Nov 2011 at 8:23

GoogleCodeExporter commented 8 years ago
Kurt, I don't see the "Transformer" option in settings after installing your 
version. Could this be either because this is the 3G version (TF101G) or 
because the langauge of my system is not English?

Original comment by akaih...@gmail.com on 13 Nov 2011 at 8:51

GoogleCodeExporter commented 8 years ago
Yes I don't see it either. I am using asus slider.

Original comment by kzeo...@gmail.com on 19 Nov 2011 at 3:54

GoogleCodeExporter commented 8 years ago
The option was removed when the code started to check 
Build.MODEL.equals("Transformer TF101");  We'll need to enhance this check for 
things like the Transformer Prime and the slider.

I have my own version of this fork that also fixes the Enter key issue (as 
mentioned in that bug) and am about to try out the back-as-esc change.  It 
would be nice to limit that remapping to just the back via the keyboard (not 
the screen), but that may not be possible (I haven't checked yet).  If the 
lorantkurthy version doesn't get updated soon, I'll push out a git fork that 
has the latest official changes + all these extra fixes.

Original comment by 4WayneD on 21 Nov 2011 at 2:44

GoogleCodeExporter commented 8 years ago
I have been trying to get this to work on my Slider for the past few hours. 
Searching has finally led me here. I can be patient waiting for a new build 
that does the Buld.MODEN.equals in a way that supports the Slider, but I wonder 
if I should expect any additional issues? I have the Japanese version of the 
slider. The keyboard is somewhat different.

Original comment by queueb...@gmail.com on 29 Nov 2011 at 6:14

GoogleCodeExporter commented 8 years ago
I made an attempt to support the TF101G in my fork. See 
https://github.com/akaihola/connectbot/commit/4b70b92b186fb88c2b8eb5496dce79ce7f
0496c0

Unfortunately I haven't yet had a chance to actually compile and test the 
modification. 

Original comment by akaih...@gmail.com on 29 Nov 2011 at 6:47

GoogleCodeExporter commented 8 years ago
I'd suggest changing the 2 lines that end with !Build.MODEL.equals("Transformer 
TF101") into:

... && !Build.MODEL.startsWith("Transformer ");

That way it matches anything that starts with "Transformer" and a space.

(akaihola: you missed on in src/org/connectbot/ConsoleActivity.java )

I'll attach a patch with this change in it.

Original comment by 4WayneD on 30 Nov 2011 at 1:33

Attachments:

GoogleCodeExporter commented 8 years ago
This isn't specific to the Asus Transformer's keyboard dock.  I encountered the 
exact same problem on an Eee PC 1005PEB running Android-x86 3.2 RC2 
(Honeycomb).  Is there any way the model could be detected at run time, so we 
don't wind up with ten million versions of Connectbot?

Original comment by jonathan...@gmail.com on 1 Dec 2011 at 5:57

GoogleCodeExporter commented 8 years ago
Is there an android way to check for a physical keyboard or better yet keyboard 
layout?  This problem is going to be more and more common as tablets become 
popular.

Original comment by fen...@gmail.com on 20 Dec 2011 at 1:09

GoogleCodeExporter commented 8 years ago
Are there still issues with the Transformer? In my clone - 
http://connectbot.vx.sk - I am providing a selectable menu option for Xperia 
(mini) pro users. Do all the Transformer keys work? If not, I could provide 
something similiar for the Transformer.

Original comment by martin.m...@vx.sk on 27 Dec 2011 at 2:35

GoogleCodeExporter commented 8 years ago
The only combo that I would like to work on connect bot for the transformer is 
shift + delete, have it map to delete next character (as it does in the rest of 
the Android system). I am not sure about the function keys as I don't use them, 
I can confirm that vim works great using the search key (magnifying glass) in 
place of escape.

Original comment by mmfolke...@gmail.com on 27 Dec 2011 at 9:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I just saw comment #62, saying the ASUS Transformer keyboard support option was 
removed from the lorantkurthy version.  Is there a copy of this still available 
anywhere?  Or some other replacement?  I really need to be able to use this 
TF101 for mutt and emacs on a remote system.

Thanks,
-pd

Original comment by pfda...@gmail.com on 2 Jan 2012 at 2:42

GoogleCodeExporter commented 8 years ago
I have my own clone with some transformer changes and some fixes (e.g. Enter 
key, pubkey).  You can find it here:

https://code.google.com/r/4wayned-connectbot-transformer-fixes/source/list

It's pretty easy to use ant to build that, if you want to set up your own 
android SDK.  If you don't want to hassle with that, you could snag my debug 
apk here:

http://opencoder.net/ConnectBot-debug.apk

Original comment by 4WayneD on 2 Jan 2012 at 10:39

GoogleCodeExporter commented 8 years ago
Thanks, 4WayneD.  I just tried the debug build, but I still don't see any 
option in Settings to set the keyboard to ASUS TF101.  Am I missing something?  
Thanks!

Original comment by pfda...@gmail.com on 2 Jan 2012 at 11:45

GoogleCodeExporter commented 8 years ago
As I mentioned in comment 65, the option was done away with long ago.  What's 
not working?

Original comment by 4WayneD on 3 Jan 2012 at 1:01

GoogleCodeExporter commented 8 years ago
Oh, I see.  The option is gone, but the keys just work.  Excellent!  I'm going 
to experiment some more, but my initial results with emacs look good.

Thanks!

Original comment by pfda...@gmail.com on 3 Jan 2012 at 1:19

GoogleCodeExporter commented 8 years ago
I just got my ASUS Transformer Prime and keyboard dock with the main purpose of 
running emacs. 

With the ConnectBot-debug.apk, the control key works fine (though I will remap 
it to caps-lock) and the search key works as Alt. Made my day.

Thanks!

Original comment by Cindy.Mo...@gmail.com on 5 Jan 2012 at 3:20

GoogleCodeExporter commented 8 years ago
Also just got my Transformer Prime. Needed the debug version mentioned above to 
get the Ctrl working, but now it does! Thanks

Original comment by turbod...@gmail.com on 13 Jan 2012 at 12:02

GoogleCodeExporter commented 8 years ago
Just tried the debug version on a prime. It works. Thank you 4WayneD !

Original comment by laurent....@gmail.com on 21 Jan 2012 at 9:20

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This app works fine with the hardware keyboard on the Transformer: 
https://github.com/jackpal/Android-Terminal-Emulator

ctrl works great, which is what I use all the time with "screen"  etc 

Perhaps the code from it can be used in connectbot to fix the hardware key 
issues?

Original comment by ande...@gmail.com on 28 Jan 2012 at 7:26

Attachments:

GoogleCodeExporter commented 8 years ago
The debug version from #72 is pretty near perfect. It seems better on Android 
v4 than the ancient version on the market and it supports the Prime keyboard 
perfectly. This should be merged into the main branch and released on the 
market imho. Great work.

Original comment by andrew.i...@gmail.com on 4 Feb 2012 at 10:28

GoogleCodeExporter commented 8 years ago
First thing I did with my prime was to fire up an ssh with connectbot and cry 
at its unusability, build in comment #72 has made me happy again, don't forget 
to enable back key = esc in the settings.

Original comment by darksk...@gmail.com on 4 Feb 2012 at 11:15

GoogleCodeExporter commented 8 years ago
Pretty much same feeling as #82. I love the build from #72 :) It would be 
awesome if you could keep the back button on the screen working while remapping 
the keyboard one, but that is just nitpicking.

Original comment by alurcard2 on 5 Feb 2012 at 8:43

GoogleCodeExporter commented 8 years ago
Hi,
is it some change for select text with shift+arrow and copy, paste? :) 

Original comment by brozi...@gmail.com on 9 Feb 2012 at 3:18

GoogleCodeExporter commented 8 years ago
Since there is a tablet version of ConnectBot, anyone fancy enough to put 
Transformer/Prime/Slider keyboard modifications in it?

I kinda like it more than 'normal' phone versione since i can switch extremely 
easily among different established SSH sessions.

Would be really nice to have it modified.

Thanks in advance!

Original comment by sal...@gmail.com on 16 Feb 2012 at 2:21

GoogleCodeExporter commented 8 years ago
I personally dislike the tablet version, as it wastes screen space that I want 
to use for displaying content.  It was also buggy back when I tried it, so I am 
satisfied with the normal version.

Original comment by 4WayneD on 16 Feb 2012 at 3:36

GoogleCodeExporter commented 8 years ago
Well I find it useful, so I grabbed source from your git, tablet branch, and 
incorporated few of your tweaks (actually everything except last two you 
committed in master branch).

Here is a link to it : 
http://dl.dropbox.com/u/9348267/connectbot-debug-tablet.apk

Original comment by sal...@gmail.com on 17 Feb 2012 at 7:45

GoogleCodeExporter commented 8 years ago
Dunno if there's a more relevant bug report, but I have the same symptoms with 
Connectbot on my Motorola Droid4. Shifted number keys are not getting entered 
correctly, 1-4 produce nothing. Shifted 5 thru 0 produce VT100 function key 
codes 5, 7, 8, 9, 0, and 1.

Can someone please point me to the particular source patch that fixed this for 
the Transformer? Thanks.

Original comment by Highland...@gmail.com on 2 Mar 2012 at 9:29

GoogleCodeExporter commented 8 years ago
I see, the Droid4 issue has been reported as Issue#558.

Original comment by Highland...@gmail.com on 3 Mar 2012 at 7:41

GoogleCodeExporter commented 8 years ago
I think we should switch the current auto-detection code back to using a menu 
option so that other devices can try out the code.  I'll look into that for my 
patched version soon.

Original comment by 4WayneD on 3 Mar 2012 at 8:29

GoogleCodeExporter commented 8 years ago
THANK YOU SO MUCH 4WayneD!!!
Your APK from post 72 is perfect :)

Original comment by n.wayw...@gmail.com on 11 Mar 2012 at 3:15

GoogleCodeExporter commented 8 years ago
Hi,

after being pretty near frustrated having a halfway decent keyboard on my brand 
new TF201, but not being able to do even the simplest work on it with 
connectbot, I tried the version from #72, and it fixes most issues I have ... 
I'm using a TP with German keyboard ... only a small number of keys do not work 
correctly, like § (shift-3), accents (`´), € or German Umlauts (äöüß), 
but I can live with that ... 
Thanks!

Original comment by Garry.M...@googlemail.com on 30 Mar 2012 at 4:28

GoogleCodeExporter commented 8 years ago
My bad - seems like the system I tried this with didn't have the right encoding 
set, trying with a different server yielded all correct chars apart from "ß" 
(szlig) ...

Original comment by Garry.M...@googlemail.com on 30 Mar 2012 at 5:02

GoogleCodeExporter commented 8 years ago
I tried using the APKs from #72 and #87, however neither seemed to work for me 
on my Slider SL101; they behaved no differently than the official builds. Is 
this perhaps related to the auto-detection?

Original comment by admiraln...@gmail.com on 1 Apr 2012 at 11:56

GoogleCodeExporter commented 8 years ago
apk from #87 works great on asus transformer prime

thanks!

Original comment by obezpa...@gmail.com on 3 Apr 2012 at 5:55

GoogleCodeExporter commented 8 years ago
Any way we can get a working apk for the transformer tf300?  I've tried the 
different apks and I dont see an option for the keyboard on the tf300?

Original comment by ryanl4...@gmail.com on 1 May 2012 at 3:37

GoogleCodeExporter commented 8 years ago
Same here for the "ASUS Transformer Pad TF300T". None of the apks work. Can't 
get the symbols over the numeric keys, ctrl doesn't work.

Original comment by robert.b...@gmail.com on 1 May 2012 at 8:55

GoogleCodeExporter commented 8 years ago
I also have the symbol problem, but I'm on a x86 android install on a laptop, 
see this video I shot : http://youtu.be/Hee290LVJJQ, please help me , thanks !

Original comment by express....@gmail.com on 17 May 2012 at 11:08

GoogleCodeExporter commented 8 years ago
also having this problem on asus tf300 (symbol keys with kb dock)

Original comment by roland.k...@gmail.com on 27 May 2012 at 10:59

GoogleCodeExporter commented 8 years ago
Have this problem on tf300. Noticed that if you start connectbot without the 
keyboard docked, THEN dock, works just fine. If you start Connectbot ALREADY 
docked then it won't recognize the symbol keys correctly.

Original comment by antiwhip...@gmail.com on 29 May 2012 at 8:53