reidwooten99 / connectbot

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

cannot input certain symbols at all (!,&,$,%) #515

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.connect to UNIX host, using any terminal
2.try to input symbols i.e. !,&,$,% using any keyboard

What is the expected output? What do you see instead?
i expect to see symbols typed in the shell command line,or text 
editor,anywhere,but just beep sounds instead

What version of the product are you using (you can see this by using Menu
-> About in the Host List)?
any: market version,or "master" versions

What type of system are you trying to connect to?
Ubuntu, centos

If you are able to connect, what is the output of "echo $TERM", "uname -a",
and any other relevant information on the host?
vt100, screen, any

Please provide any additional information below.
device is HTC sensation, stock roms,as well as on the latest 2.08 and cooked 
roms

Original issue reported on code.google.com by mrozents...@gmail.com on 15 Oct 2011 at 4:31

GoogleCodeExporter commented 8 years ago
confirmed,
http://code.google.com/p/connectbot/source/detail?r=9386994add488c34dfc81002d715
8eedd4b9c7d1
is the reason for this.
specifically these lines:
                        // no hard keyboard?  ALT-k should pass through to below
                        if ((orgMetaState & KeyEvent.META_ALT_ON) != 0 &&
                                        (!hardKeyboard || hardKeyboardHidden)) {
                                key = 0;
                        }
Some symbols like !,&,$,% get sent as two key events by the soft-keyboard. the 
first being a FN key, the second an actual keycode.
Removing this if() fixes the issue.

I don't understand why this is there anyway...

Original comment by m0viefre...@googlemail.com on 13 Nov 2011 at 4:13