Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectBot Control keys not working with ICS. #33

Open
j9brown opened this issue Jan 18, 2012 · 2 comments
Open

ConnectBot Control keys not working with ICS. #33

j9brown opened this issue Jan 18, 2012 · 2 comments

Comments

@j9brown
Copy link

j9brown commented Jan 18, 2012

Because ConnectBot handles control keys in a special way, it should be returning true back up the View hierarchy to indicate that the key was handled but from what I can tell using a debugger, this isn't always the case.

For example when typing Control-C on a Bluetooth keyboard. Given a KeyEvent with action KEY_DOWN, metastate of META_CTRL_ON, and a keycode like KEYCODE_C, the ViewRootImpl dispatches the key event down the hierarchy as usual but ConnectBot doesn't seem to handle it and returns false.

As a result, the ViewRootImpl tries to dispatch the key as a shortcut instead, which causes the Copy action to be invoked.

To be honest, the code in the key listener to detect hard keyboards and handle them specially seems overly complicated. Ideally, a keyboard is a keyboard. At most, an application can determine whether a given key event came from a QWERTY keyboard (reduced built-in keyboard) or a FULL keyboard (PC-style keyboard). It's best not to make too many assumptions about what these keyboard types really mean.

Apparently control keys used to work with ConnectBot prior to ICS although I haven't verified this. We did change some subtle behavior related to dispatching shortcut keys in ICS, but that shouldn't have broken ConnectBot assuming it was handling control keys in the expected manner.

@woltage
Copy link
Member

woltage commented Jan 20, 2012

@j9brown Thanks, we will look this problem in next releases. I think this comment will help so much us, so thanks a lot!

Code looks sometimes so awful so we started rewrite code (yes... over year ago), I wish ICB2 will be released in this year. But let's see.

@tmtravolta
Copy link

I think this is related issue I've hit now, bluetooth keyboard ctrl key won't work on irssi connectbot, have to poke the screen for that key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants