Prastt21 / connectbot

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

Sprint Epic 4g (SPHD700BKS) hardware keyboard swaps - and _ (underscore and dash/hyphen) #352

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open ConnectBot on a Samsung Epic 4g (SPHD700BKS) and connect.
2. Use the physical hardware keyboard.
3. Press fn+w ("-" or dash), an underscore ("_") appears.
4. Press fn+e ("_" or underscore), a dash "-" appears.
5. (Optional) Bring up the an on-screen keyboard; "-" creates a "-" and the "_" 
creates a "_" as they should.

What is the expected output? What do you see instead?
"-" (hyphen) for fn+w is expected; "_" (underscore) appears instead. Likewise:
"_" (underscore) for fn+e is expected; "-" (hyphen) appears instead. Likewise:

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

What type of system are you trying to connect to?
Occurs on local and ssh to (ubuntu Linux); telnet not tested.

If you are able to connect, what is the output of "echo $TERM", "uname -a",
and any other relevant information on the host?
For local:
  `echo $TERM` returns an empty line.
  `uname -a` returns "Linux localhost 2.6.29 +2 Thu Jul 22 23:22:22 KST 2010 armv71 GNU/Linux"

For SSH:
  `echo $TERM` returns "screen"
  `uname -a` returns "Linux localserver 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 2010 x86_64 GNU/Linux"

Please provide any additional information below.
   Only the hardware keyboard has the keys swapped; multiple virtual keyboards (swype, Android, and multitouch) return - and _ unswapped. - and _ are returned correctly (fn+w for "-" etc) in all other programs tested, including Android Market, Dolphin Browser, Memo, and the quick search.

I'm very willing to test if it would help; I know it can't be easy to support 
so many devices. :)

Original issue reported on code.google.com by rickybr...@gmail.com on 5 Sep 2010 at 6:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Just checking in to confirm this issue. It's not present with other terminals 
from the market.

Original comment by greml...@gmail.com on 9 Sep 2010 at 4:52

GoogleCodeExporter commented 8 years ago
Epic - the return key on the front has to be hit repeatedly to work, and on the 
slide out keyboard the letter B is inserted whenever it "flakes" out. I'm being 
extreamly careful and it still appears several time each time I use it.

Original comment by mmund...@gmail.com on 16 Sep 2010 at 4:54

GoogleCodeExporter commented 8 years ago
Epic 4G
I believe the handling of Epic's hardware keyboard has changed since an earlier 
version (Prior to 2010.09.02 version).

What steps will reproduce the problem?
1. Open ConnectBot on a Samsung Epic 4g (SPHD700BKS) and connect.
2. Use the physical hardware keyboard.
3. Press Fn+b ("/" or whack), a question mark ("?") appears
4. Press Fn+. ("!" or bang), nothing appears
5. Press Fn+n ("@" or AT), a zero ("0") appears
6. Press Fn+m ("?" or question mark), a backslash ("\") appears
7. Press Fn+o (":" or colon), a horizontal line (not dash) appears
8. Press Fn+0 (")" or close parenthesis), a bell and tilde (^G and "~") appear
9. Press Fn+9 ("(" or open parenthesis), a bell and tilde (^G and "~") appear
10. Press Fn+7 ("&" or ampersand), a bell and tilde (^G and "~") appear
11. Press Fn+6 ("^" or caret), a bell and tilde (^G and "~") appear
12. Press Fn+5 ("%" or percent), a bell and tilde (^G and "~") appear
13. Two presses of the "Back" key are required to return to hosts list.
14. Two pressed of "Menu" key are required for menu to appear.

Pressing Fn once will display a lower solid triangle cursor, twice will display 
the normal cursor, but give correct access to above affected keys until the Fn 
key is pressed again, which it will return the keyboard to standard 
alphanumeric mode.

It would be preferable for this behavior to mimic the Shift key behavior: One 
press for a lower triangle outline cursor, for a single Fn key.  Two presses 
for a lower solid triangle cursor, Fn keys locked until shift pressed again.

Thank you!

Original comment by mykie...@gmail.com on 14 Oct 2010 at 4:25

GoogleCodeExporter commented 8 years ago
In regards to my comment above, I have found that it is related to Ultra 
Keyboard being selected as my Input Method while using Connectbot.  Using Swype 
or the Android Keyboard does not exhibit the above behavior.

Original comment by mykie...@gmail.com on 19 Oct 2010 at 4:28

GoogleCodeExporter commented 8 years ago
I'm not sure what the cause of the '_' & '-' swap issue is.  A cursory glance 
at the Epic keymap suggests it's correct, and it's not obvious why ConnectBot's 
handling of these symbols are different from any other.

That said, attached is a patch that adds a workaround that reswaps those two 
symbols to the correct place (on the hardware keyboard only).  It also adds 
some Epic specific enhancements: make ":)" an alternate dpad-center (CTRL & 
ESC), make "Sym" emit TAB, and make ".com" (Fn+"Sym") emit '`' (backtick).

Located at [1] is a build of ConnectBot v1.7.1 with these fixes included.  I'm 
also maintaining a thread at XDA [2] for (future) builds of ConnectBot with 
these fixes.

I'm not really expecting these Epic-specific fixes to make it back into 
standard ConnectBot.  However, since they shouldn't affect other devices, it 
would be wonderful if they did.

[1] http://www.club.cc.cmu.edu/~mkasick/android/connectbot-1.7.1-epic-1.apk
[2] http://forum.xda-developers.com/showthread.php?t=813176

Original comment by mkas...@gmail.com on 27 Oct 2010 at 2:13

Attachments: