I'm adjusting the key map for a usb keyboard by editing the Generic.kl file, but am having a bit of a problem. I can map all keys except the app switch key. Does anyone know the android code for it?
How about for the notification bar? Opens the menu like when you click on the clock?
Related
To manage phone calls on Nexus, it is very painful if we are using some launchers that does not build in bock bar as same as Helix2 launcher.
Is it possible to port soft keys (back, menu, home & seach) for other uses?
For example, Change "Search" key to "Phone" function.
It is because of that I seldom use "Search" key but often use "Phone" function.
Here is one idea ...
Press "Search" key will trigger GlobalSearch.apk on /system/app/. Can we rename Phone.apk into GlobalSearch.apk then replace it on /system/app/ in order to change "Search" key's habit?
the dialer one app let's you long press search to open the dialer. its a good dialer replacement, check it out.
-------------------------------------
Sent via the XDA Tapatalk App
ty1033 said:
To manage phone calls on Nexus, it is very painful if we are using some launchers that does not build in bock bar as same as Helix2 launcher.
Is it possible to port soft keys (back, menu, home & seach) for other uses?
For example, Change "Search" key to "Phone" function.
It is because of that I seldom use "Search" key but often use "Phone" function.
Here is one idea ...
Press "Search" key will trigger GlobalSearch.apk on /system/app/. Can we rename Phone.apk into GlobalSearch.apk then replace it on /system/app/ in order to change "Search" key's habit?
Click to expand...
Click to collapse
You can remap Search Long Press for anything you want.
Check out Button Shortcut on the Market: http://www.cyrket.com/p/android/com.socialnmobile.buttonshortcuts/
(You can't remap any other button.)
[REQUEST] Changing default bottom 4 key assignment & menu unlock
I really want to make buttons to assign like G1 - "Call, BACK, Menu, Home" how this can be done? can someone write app for it, google search button in nexus one is waste,
Also looking for trackball or long hold menu button click to unlock phone,
Hope someone can help!
Is it possible to remap the action invoked by pressing the Back and Home buttons? Or can it be removed? Like long-press Back acts as the Home key. And long-press Home pulls down the notification bar?
It's annoying because I always press Back to exit an app, not Home. And sometimes it lags so a tap of the Back key registers as a long-press and actually sends me Home.
Is it possible to remap by changing stuff around in the keylouts?
And also, is it possible to remove that "feature" of the volume being lowered when headphones get connected? That's annoying, too.
badboi_zero said:
Is it possible to remap the action invoked by pressing the Back and Home buttons? Or can it be removed? Like long-press Back acts as the Home key. And long-press Home pulls down the notification bar?
It's annoying because I always press Back to exit an app, not Home. And sometimes it lags so a tap of the Back key registers as a long-press and actually sends me Home.
Is it possible to remap by changing stuff around in the keylouts?
And also, is it possible to remove that "feature" of the volume being lowered when headphones get connected? That's annoying, too.
Click to expand...
Click to collapse
/system/usr/keylayout/
directory may be of some use.
I'm not able to access those files at the moment but i think the file s3c-keypad.kl allow for some remapping as well.
I'll post back with more help when I'm actually able to access those files for the phone.
Can anyone suggest the best (fastest/efficient) method for modifying the behavior of a hardware key press based on which app has focus and also if a menu has been opened?
I'm looking to change the action of DPAD UP/DOWN to Volume UP/DOWN if certain apps have focus but then change it back if a menu is opened in the app or if focus moves somewhere the mod is not required (i.e. launcher).
The device in question runs Gingerbread if that makes a difference.
TIA
Mapping hardware keys feature, like in many other ROMs, would be really useful feature. Who agrees, +1 pls!
Yes please,
e.g. the Find 7 has that old and never used "menu" button on the left.
Under Cyanogenmod/LineageOS I can modify this button, so it acts the "recent apps" button.
Although OmniROM allows to change the longpress of this button, the single press can't be changed and therefore still has the "menu" functionality. Quite annoying, because it's useless.
A manual workaround would be to edit the Generic.kl:
1. Open /system/usr/keylayout/Generic.kl in Text Editor.
2. Then scroll down to "key 139", this is the key for the hardware menu button. Right now it will say "MENU" next to it. Replace it with "APP_SWITCH" instead.