Swap Keyboard Mapping - Epic 4G Android Development

Is there a way to swap hardware keyboard keys, specifically, I want to make the smiley key the @ key, the @ key become the smiley, and have the symbol key become the .com with the function swapped to symbol if you follow me. I poured through the system dump but must have over looked the file/s needed to do it.
Sent from my SPH-D700 using XDA App

Related

CM 6.1 keyboard

Is remapping a single key a difficult thing to do, for you smart dudes?
I don't use the voice key at all. Can that key be remapped to a right arrow key? I don't miss or need all of the arrow keys but having a way to move the cursor to the right would really make editting a multi-line message much easier. I can use the backspace to move it left and just retype the letters but moving right would be oh so nice.
(I'm not a complete noob but my programming kung fu is still lacking compared to a lot of you...)
bump bump b.. (for min char requirement)
Taking a shot in the dark but I am guessing you would need to modify the keyboard.apk(?) .. or add a new keyboard with this mod done.
---
You can always just modify the keyboard 'theme' and replace the key you want with a right arrow. It wouldn't work but it would look the way you want it to.

Ctrl key ?

In my previous HTC, Touch Pro2, there is a Ctrl key, but on HTC 7 PRO I cannot see it. If there is a way to map such Ctrl key? I need to use it
1.) why do you need the key?
2.) there is actually no ctrl-key and you won't be able to map it do any other.
keymap could be modified on rhodium
http://forum.xda-developers.com/showthread.php?t=538228
Suppose something similar could be digged. have no wp7 at the moment though.
hope to read of android working and smoothly on 7pro :=) unless a cool qwerty is released for android, maybe 4.3"
exilkubaner said:
1.) why do you need the key?
2.) there is actually no ctrl-key and you won't be able to map it do any other.
Click to expand...
Click to collapse
Hi all,
I had the same thought.
The benefit of the Control key (for my usage):
- press CONTROL + BACKSAPCE to delete a whole word at a time (rather than single letters
- using the arrow buttons + CONTORL makes copying text much easier, that way you don't have to get onto the touch screen (useful on long emails etc)
- much easier to copy & paste just using the keyboard, like on your normal keyboard
It would be great to have the Control button or have the same function somehow else.
BGM said:
Hi all,
I had the same thought.
The benefit of the Control key (for my usage):
- press CONTROL + BACKSAPCE to delete a whole word at a time (rather than single letters
- using the arrow buttons + CONTORL makes copying text much easier, that way you don't have to get onto the touch screen (useful on long emails etc)
- much easier to copy & paste just using the keyboard, like on your normal keyboard
It would be great to have the Control button or have the same function somehow else.
Click to expand...
Click to collapse
I use to do the same thing. Feel lost without it. I know it can still be done by dragging your finger. Though to me... its not with the same ease. I dont know how they could possibly think an emoticon button is more crucial :S Its a business phone ffs!

Original SideKick style keyboard feature?

Question: is there a way to get a feature original SideKicks had when typing? If you double tap "shift" it puts it into a "capslock" state. Before if you hit "alt" it would type an "alt" character then go back to "capslock". This keyboard doesn't recognize that alt press and just types "capslock" state keys.
Is this even possible?
Sent from my SGH-T839 using XDA App
No. It's how android os was designed. I know BlackBerry used to do wht you describe as well.
I also miss the "AutoText" Function and more powerful Symbols function that the original sidekicks had.
ncmacasl said:
I also miss the "AutoText" Function and more powerful Symbols function that the original sidekicks had.
Click to expand...
Click to collapse
Keyboard = IO input which = Kernel, correct? Whats stopping us from remapping the APIs, and making a pretty little OG Sidekickesque wrapper?

[Q] How to delete letter from left to right?

I use the SK4G physical keyboard very often. I couldn't find a way to delete a letter from left to right just like on the pc keyboard. The del key on the SK4G keyboard work like the backspace key on the pc keyboard.
I really need to find a way to delete text from left to right instead of having scroll to the end of a word in order to delete a letter.
Thanks for your help,
Hieu
on old sidekicks (Danger OS) it was Shift+Del. That has been removed and now both Del & Shift+Del function as a Backspace key.
Alt+Del functions as Delete Entire Line
I would like this, too.

LG Optimus F3Q (D520) and remapping its hardware keyboard

The LG Optimus F3Q (D520) is a phone with "Five-Line Slide-Out QWERTY Keyboard with PC-Like Shortcuts" (LG website). Missing from the keyboard however, is the "Ctrl" key. This brief guide shall attempt to show how an arbitrary key may be remapped for it.
Root the phone. Saferoot by k1mu works for this phone, although I found that the phone did appear to hang should one try to reboot or power off using the hardware power button after rooting. Removing and replacing the battery boots up the phone without issue should that happen. Software-based rebooting works fine.
Install your favourite file explorer for root users. ES File Explorer File Manager worked well for me.
On the phone, navigate to the "/system/usr/keylayout" directory.
Make a copy of the "f3q-keypad.kl" file and put it somewhere safe in case you need to revert to it.
Edit the "f3q-keypad.kl" file using a text editor.
Look for the line "key 100 ALT_RIGHT WAKE_DROPPED". This corresponds to the fn key on the right side of the keyboard.
Replace "ALT_RIGHT" with "CTRL_RIGHT".
Exit the file and save. View it again to verify that your changes have been saved.
Reboot.
Try it out. Ctrl-C should work in a terminal emulator.
To have even greater control over the remapping, you would also need to edit the "f3q-keypad.kcm" file in the "/system/usr/keychars" directory.
Note! If you are using connectbot, please obtain at least version 1.8.1 from connectbot at GitHub. Version 1.7.1 of connectbot in the Google Play store did not recognise the Ctrl command when I tried. Thus, it may be possible that some other programs may also not recognise the Ctrl command.
Disclaimer: I mucked around a lot by trial and error as version 1.7.1 of connectbot was tripping me up, so I had changed a lot more things than what I had listed in the steps above. However, looking back at it, I doubt that any other changes I had made were truly necessary.
Helpful stuff:
appelflap has a button remapper app, which I installed, but didn't appear to be able to do what I wanted. However, the KeynrTracker.apk he linked is very helpful should you very quickly want to know which key corresponds to what.
References:
Key Layout Files
Key Character Maps Files
List of Unicode characters
Other thoughts:
I found Link2SD and Foldermount [ROOT] to be indispensible for this phone.
Thanks! I just might try replacing that pesky write and share app key with CTRL...
It would satisfy a request of mine for my F3Q ROM.
EDIT: Downloaded the app. Because pressing the key pushes the app to the background, it won't capture.
Last line of the file though says "WRITE_SHARE". Think I got somewhere.
Sure did, "WRITE_SHARE" now replaced with "CTRL_LEFT", and is working like a charm!
Glad this helped somebody !
joel.maxuel said:
Thanks! I just might try replacing that pesky write and share app key with CTRL...
It would satisfy a request of mine for my F3Q ROM.
EDIT: Downloaded the app. Because pressing the key pushes the app to the background, it won't capture.
Last line of the file though says "WRITE_SHARE". Think I got somewhere.
Sure did, "WRITE_SHARE" now replaced with "CTRL_LEFT", and is working like a charm!
Click to expand...
Click to collapse
Keth Tenderfoot said:
Glad this helped somebody !
Click to expand...
Click to collapse
how to deal with sticky keys?
Polish keyboard mapping on F3Q
Hi, I'm sharing my .kcm and .kl files of the F3Q used with the Polish characters mapped to the respective keys.
(Note to the German users of F3Q: you might edit my f3q-keypad.kcm file ,and map your äöüß characters to the aous keys, if you feel like having your language version of the mapping.)
Keyboard allocation modifications:
SEARCH key mapped to TAB
WRITE_SHARE key mapped to CTRL_LEFT
ALT_RIGHT key mapped to CTRL_RIGHT
PL layout: [ęąółżźćń] mapped on ctrl+[eaolzxcn]
PL layout: [„] mapped on ctrl+[k]
PL layout: [”] mapped on ctrl+[,]
The files have to replace /system/usr/keychars/f3q-keypad.kcm and /system/usr/keylayout/f3q-keypad.kl respectively to be active.
Hallo Pruszków,
Thanx for your polish Keymaps, great work!!!
At the moment I try to modfy them to German. It works fine so far, but now my question is, how can I use the right "fn" key (which is the new ctrl/alt key) without pressing at the same moment as the vowel/consonant, which I want to modify? With the left "fn" key I can first press the button, then release it and it holds its function.
Do you know what I mean?
Would be fantastic, if there is a solution too!
Best regards & dziękuję,
sÖren
fn/alt or ctrl?
Hi Sören,
Thanks for sharing your feedback. I'm glad my stuff could be of some help to you!
spacemoere said:
how can I use the right "fn" key (which is the new ctrl/alt key) without pressing at the same moment as the vowel/consonant, which I want to modify? With the left "fn" key I can first press the button, then release it and it holds its function.
Click to expand...
Click to collapse
Well, the "fn" labeled key was originally associated with the "alt" behavior. The "alt" keeps its mode when you press and release it. But I mapped the right "fn" to the "ctrl" bahavior, and... "ctrl" works just when you press and hold it. So, what to do in your case?
You might get back to the original "fn' mapping (in the .kl file) and keep the right "fn" as "alt", and then define äöüß (in the .kcm file) in combination with "alt" instead of "ctrl".
But...
there is a challenge with the special characters already mapped to the keys. E.g. let's take the key "u". Originally "alt" and "u" prints "+". When you'd map "alt" and "u" as "ü" then you'd loose any possibility to get "+". I have no good idea how to resolve that well. Maybe you'd map "+" to: "ctrl" and "u"? Then you'd use "ctrl" only from the key 59 (CTRL_LEFT), as the key 100 you'd map back to ALT_RIGHT.
The bottom line is: you'd need to choose between "alt" and "ctrl" stuff when deciding your settings.
In my case I took "ctrl" for my Polish mapping, as I'm used to press and hold the "fn" to print the Polish characters. If you're used to press and release, to print a German character, you might consider using "alt" instead.
I hope this helps.
Tschüs,
Bernard
Remapping IME
Thank you for the post Keth, very easy explained.
I am wondering about modifying not the standard character map, but the LG Keyboard IME.
I could not find any alternative input method with a good support for physical keyboard and good dictionaries, so I thought it may be better to modify the included input method than using a different one, correct me if I am wrong.
So I extracted the LGEIMEbin.apk from the system/apps directory, and opened it on the computer to figure out how to modify it.
Keyboard layout are saved in XML, so I supposed it should be easy to modify with a text editor like Notepad++, and just say for every key or combination of keys what kind of character do I want.
Well, I was wrong, as the xml do not contain any clear structure that is in any way possible to understand as it was for f3q-keypad.kcm and f3q-keypad.kl.
I tried to open all kind of xml files included in the LGEIMEbin.apk, and all of them presented non recognised characters, as you can see in the picture that can be found at this address:
img4web.com/i/D3RC42.png
Has anybody any hint of why notepad++ does not recognise those characters and how could I correctly visualise them?

Categories

Resources