SunTTT / connectbot

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

Feature Request: Support Freedom Keyboard Pro Keys (Ctrl & Tab) #372

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
hi there,
today i got my freedom keyboard pro which works nearly perfect.
i tested connectbot and i noticed that the most important keys
are not working: CTRL and TAB. of course i don´t know how the
drivers send the keys but in other applications it is working
so i think it must be a connectbot issue to interprete the keys
correct.

working with an external keyboard is freedom pure, no question ;)
but it´s very awful if you cannot use CTRL and TAB here ;(

i would be very very happy if this issue could be fixed in the
next time.

thank you!

links: http://www.freedominput.com/freedom-accessories/freedom-pro-keyboard
driver i am using: 
http://www.otadrivers.com/pronew/android/ProKeyboardSettings.apk (for android 
2.1 + 2.2)

Original issue reported on code.google.com by michael....@gmail.com on 30 Sep 2010 at 10:41

GoogleCodeExporter commented 8 years ago
the developers of the keyboard say:

>we have developed the android driver as much as we can to try and cover most 
programs.
>you will have to speak with the app developer to see what he can do.
>Jon Brook
>Technical Assistant
>Freedom Input 

so i hope to get support from you guys !
PLEASE!!! ;)

Original comment by michael....@gmail.com on 4 Oct 2010 at 2:42

GoogleCodeExporter commented 8 years ago
I am in, I need desperately CTRL key on android, when using ConnectBot 

Original comment by opensubt...@gmail.com on 7 Oct 2010 at 5:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
There is someone that made a patch for the Toshiba AC100 keyboard. I'd be 
interested to know if that patch works for this keyboard:

http://github.com/kruton/connectbot/pull/3

Original comment by kenny@the-b.org on 9 Oct 2010 at 6:05

GoogleCodeExporter commented 8 years ago
sorry, i sold my keyboard - the guys from the freedom support showed me, that 
they are not really interested in their customers... dear android user: DON`T 
BUY THIS KEYBOARD !!! 

Original comment by michael....@gmail.com on 11 Oct 2010 at 11:47

GoogleCodeExporter commented 8 years ago
1- I contacted Freedom, and got a positive "Let me talk to with the engineers" 
and "I know the author of connectbot was looking into some compatibility issues
with the keyboard and I have offered him a keyboard and assistance but
haven't had any response as yet."

2- looks like enabling TAB should be trivial, by diff'ing the T-AC100 patch

Original comment by SKorzen...@gmail.com on 22 Oct 2010 at 8:46

GoogleCodeExporter commented 8 years ago
add this to TerminalKeyListener.java
            case KeyEvent.KEYCODE_TAB:
                metaState &= ~(META_TAB | META_TRANSIENT);
                bridge.transport.write(0x09);
                return true;
pretty logical hehe gonna work on CTRL and Fx now

okay driver isnt sending ctrl key properly to app, so i modified Alt to 
Control, i dont need alt at all atm, here stuff

before method onKey add

    private boolean altPressed = false;
    private boolean winPressed = false;
    private boolean rshiftPressed = false;

inside onKey add
            final boolean up = event.getAction() == KeyEvent.ACTION_UP ? true : false;
            final boolean down = event.getAction() == KeyEvent.ACTION_DOWN ? true : false;

            //alt down
            if (keyCode == KeyEvent.KEYCODE_ALT_LEFT && down) {
                altPressed = true;
                return false;
            }

            //alt up
            if (keyCode == KeyEvent.KEYCODE_ALT_LEFT && up) {
                altPressed = false;
                return false;
            }

inside onKey after if (printing) { 
add
if (altPressed) metaPress( META_CTRL_ON );

working for me as control

made Fx keys and so on myself too can post if interested

Original comment by stafu...@gmail.com on 25 Oct 2010 at 5:37