FORUMS

[GUIDE] Simple way to change physical keyboard keymappings!

2 posts
Thanks Meter: 5
 
By Juspesuomesta, Junior Member on 6th March 2013, 09:13 PM
Post Reply Email Thread
How to change FN(ALT) + key symbols, add them and even change everything on the qwerty -keyboard:
Works at least on Cyanogenmod 10 with android 4.2.2

Hi!

Today I ran into a problem. There were no < and > symbols in my phone (except virtual keyboard) and I needed them. I couldn't find any good guide how to change physical keyboard mappings so that I could use FN + button combo to get those symbols. I only found one guide, but it didn't work for me, old version perhaps? (http://forum.xda-developers.com/showthread.php?t=945921)

This is the way I found, and it's quite simple!

Quick guide:

1) Connect phone with usb and usb debugging on.
2) Find your keyboard layout name from settings -> language & input -> physical keyboard -> selected layout (for example: "vision-keypad-nor")
3 )Filename is layout + ".kcm" -> so in this example "vision-keypad-nor.kcm"
4) Go to command line and:
Code:
adb pull system/usr/keychars/vision-keypad-nor.kcm c:\vision-keypad-nor.kcm
5) Open file c:\vision-keypad-nor.kcm in notepad or other program
6) Find the key uou want to edit, for example A:
Code:
key A              {
	label:'A'       
	base:'a'       
	shift, capslock:'A'       
	alt: '#'       
	shift+alt:'#'       
}
7) Lets edit that so we get "<" -symbol when pressing FN+A:
Code:
key A              {
	label:'A'       
	base:'a'       
	shift, capslock:'A'       
	alt: '\u003C'       
	shift+alt:\u003C'    
}
Note: \u003C is unicode for "<". Find more unicodes: http://source.android.com/tech/input...map-files.html -> Input -> Key character map files

8) Save the file

9) Send the file back to the phone:
Code:
adb push  c:\vision-keypad-nor.kcm /system/usr/keychars/vision-keypad-nor.kcm
10) Reboot phone and try pushing FN+A: If you get "<" everything went fine

Im new to this, so please tell me if somethings is wrong with this guide!

Update 28.10.2013 : Updated guide to be more clear.
The Following 5 Users Say Thank You to Juspesuomesta For This Useful Post: [ View ] Gift Juspesuomesta Ad-Free
7th March 2013, 06:22 AM |#2  
Junior Member
Thanks Meter: 0
 
More
Oh, sorry... I don't read your guid carefully first time. It's about an 4.x OS :-[
23rd March 2013, 11:03 PM |#3  
Senior Member
Thanks Meter: 15
 
More
Now i do have one question... because ADB nor USB is not possible for me would this be possible using a root file explorer or no? I will try once I find the time and figure out how to get the www. and .com key back just may be a day or 2 before i can try.

By the way nice find
28th March 2013, 10:18 AM |#4  
Junior Member
Thanks Meter: 1
 
More
Been looking for a tutorial like this so that I can finally make better use of a few of the keys on my keyboard. Thanks a lot for the break down.

T.
22nd April 2013, 01:53 AM |#5  
BIade's Avatar
Senior Member
Flag Cologne
Thanks Meter: 543
 
More
Thumbs up NICE
Thanks soo much. Now lets make use of our hardware-keybs
Next step would be to assign scripts instead of single charakter
Imagine how many root-scripts we could execute with this as base for the hotkeys
26th May 2013, 07:57 AM |#6  
Junior Member
Thanks Meter: 1
 
More
Anyone have any luck getting the www. .com button to work like stock? Right now I have it as TAB.

Sent from my NookColor using Tapatalk 2
5th June 2013, 06:49 PM |#7  
Junior Member
Thanks Meter: 1
 
More
Anyone checking this thread anymore??

Sent from my HTC Vision using Tapatalk 4 Beta
14th August 2013, 12:56 PM |#8  
ralfsteck's Avatar
Junior Member
Thanks Meter: 0
 
More
Codes
Are that something similar to ASCII codes?
19th August 2013, 08:12 PM |#9  
Junior Member
Thanks Meter: 0
 
More
can I add a new language with this trick?
29th August 2013, 10:57 PM |#10  
MoKhalaf's Avatar
Junior Member
Thanks Meter: 0
 
More
Can Anyone knows how to add second language to physical keyboard? We aready have a key to SW between 2 language but it's only work for English Lang.
12th September 2013, 01:27 PM |#11  
HuKuToC34's Avatar
Junior Member
Flag Volgograd
Thanks Meter: 5
 
Donate to Me
More
nice guide! i need to make russian h\w keyboard, can someone help me with this?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes