Search code examples
androidemacskeyboardkeyevent

For Emacs, long journey for using CTRL key in Android


I need some help with Emacs. I'm running the Ubuntu in Froyo (Android 2.2) and connect with Android VNC Viewer.

But in Android VNC Viewer, it is hard to use CTRL, ALT, left mouse, and right mouse buttons so I made several experiments.

I tried to modify /system/usr/keylayout/eve_qwerty.kl (since my phone is gw620-eve), but I can't remap the volume button to CTRL key, though I can remap the volume button to ALT key

key 114   VOLUME_DOWN       WAKE -> key 114   ALT_LEFT

I also tried changing eve_qwerty.kcm.bin file as well

Is there any special name for CTRL as like ALT_LEFT? I can't remap with CTRL_LEFT or CONTROL?

Could somebody let me know ASCII code of CTRL? Or could somebody let me know how to apply this (http://developer.android.com/reference/android/view/KeyEvent.html) useful reference to my work?


Solution

  • There is no support for the CTRL key until Android 3.0.