What's up with CTRL key? - Android Q&A, Help & Troubleshooting

I have been using some time Terminal emulator and Connect Bot apps. CTRL key works perfect with both applications when using onscreen Hacker's Keyboard, but every time I try to use an external keyboard, CTRL key never works. I tried remapping it by editing /system/usr/keylayout/qwerty.kl without success. I have verified the keyboard throws key 29 when I hit CTRL key, but adding a line like this:
key 29 CTRL_LEFT
causes a weird behaviour. CTRL key doesn't work, and other keys (like SPACE) also stop working.
What's the problem with CTRL key on Android? Why is it so difficult/impossible to get it to work in external keyboards?

Related

Mapping Backspace Key to multifunctions

I know there have been many posts on similar subjects and I have tried asking the question in those but have got no answers so I am creating my own post seeking help.
I am trying to map the Backspace key on the 16 key Dual keyboard to Backspace (single press) and OK/Close (double press) and am having mixed success.
No button utilities I have found can map the keyboard keys so I have found AE Button Plus can 'learn' the key (0008) and so multifunctions can be assigned to it.
OK/Close works fine. For backspace I have created a Mortscript with 'SendBackspace' in it to simulate the backspace press but this doesn't seem to work. i have isolated the problem to the mortscript command not working. I am currently doing SendLeft and then SendDelete which does the same as the backspace except it doesn't work as a 'Back' button in Opera Mini.
Can anyone suggest any resolution?
Did you managed to find solution to your problem? I'm strugling with the same.
I used Vijay Keys to generate a signal for backspace key. But as soon as I assign the backspace key to AE button plus, backspace's original function is stolen.

[Q] Remap Keys Bluetooth Keyboard

I just got my bluetooth keyboard with built in mouse today and got it to connect. The mouse doesn't work but the keyboard does. Sadly there is no menu or back button on the keyboard. Escape won't work to go back and I would like to use control for menu if possible. Also I can use the FN key for special characters but not to change volume. My question is does anyone know how to remap these buttons?
Anyone? 10char
anyone? just want to set esc as back, ctrl as menu and something as search
Ok so keys work on CM 6.1. No menu button though but built in mouse works along with FN/VOL keys.

[Q] Remap bluetooth keyboard keys

I have the zaggfolio case and keyboard. I was wondering is there anyway to edit the functions of the keyboard. For example: change the ctrl key to a shortcut for my browser or if i long press the home but recents will show. thanks
Bumping you because I want to do the same thing for the opposite reason: My keyboard Esc key is interpreted as a local 'Back' press, and Ctrl goes I don't know where. I want it to stop modifying these keys and send them through ConnectBot instead.

Vim - no esc key?

Hi, I'm using Nexus 7 with stock JB system, with a usb keyboard, and when I use Vim both esc key and ctrl produce a ^@ character. I wasn't able to use mappings with ^@ char to get anything working (most importantly ctrl-[ for escape).
At the very basic level, I'd like to get Esc working, but ctrl would be really great, too.
I can see that android itself does understand ctrl key as a modifier, for example to jump over words in any editor by using ctrl+left/right.
How can I get this to work? It seems like such a tiny thing but it keeps me from being able to write code on N7, write and edit longer text documents.
Any help / hints appreciated!

Looking to remap my home key and soft keys

Looking to remap my home key, and my menu and back soft keys on my s3. I've looked at editing scripts, and even Xposed modules for this and here is what I found.
I can remap my keys manually, but I cannot map them to open an application.
With Gravity Box Module, I can map the applications to launch on a double press or a long press.
Here is what I want to do with a single tap.
[MENU SOFT KEY] [HOME KEY] [BACK SOFT KEY]
Open Phone Open search Open Camera
Is there an xposed module for this?
Bump.
vbetts said:
Bump.
Click to expand...
Click to collapse
Not sure there is a module for it..but all button controls are in android.policy.jar.. it would take a heavy re working to get all those things.. not saying it's not possible but..yea..not easy
Sent from my SCH-I605 using xda app-developers app
I've reset them in the touchkeys.kl file under keychars, but I cannot get CAMERA to map on the back button. I can get other actions too, but CAMERA Won't map. Here's my thread in the 747 section.
http://forum.xda-developers.com/showthread.php?t=2705040
I'm doing a few tweaks on my phone, mainly not using the capacitive keys as menu and back, and using the home key as the app switcher, and using the nav bar for those three tasks. Here's what I've got so far.
I edited a few files under system/usr/keylayout
The Menu and Search key layouts were found under sec_touchkey.kl(Home was also found under this, but I had to also edit sec_keys.kl and sec_key.kl to get the home key as the app switcher)
Here's the default settings.
key 139 MENU VIRTUAL
key 158 BACK VIRTUAL
key 102 HOME
key 217 SEARCH
Here's what I set them to.
key 139 CALL VIRTUAL
key 158 CAMERA VIRTUAL
key 102 APP_SWITCH
key 217 SEARCH
Changing the roles of keys 139 and 102 worked, but Camera does not open the camera. I've tried assigning different roles to key 158 and they've worked except for the camera role. So I'm thinking CAMERA is not the correct event name to open the camera up....
http://developer.android.com/referen...KEYCODE_CAMERA
That's where I got the keyEvent listings from.
Rom is in my signature.
Click to expand...
Click to collapse

Categories

Resources