Q: scancode for "back" softkey? - Galaxy Note 10.1 (2014 Edition) Q&A, Help & Troubl

I have a bluetooth keyboard that I use with my totally stock GS Note 10.1 2014, running lollipop. There is a key that originally did nothing but launch the Google search bar. I disabled that and now have a dead key. I'd like to remap the Andoid "back" softkey to it.
I have an app that will let me re asign scan codes, but since the key is dead, there is no scan code for it (similar to the Fn key). Since it used to launch Google search, it can be made to work, I just don't know how. And I don't know the command code for the "back" softkey.
I do have a regular back key on the keyboard which works like a regular back key....it does not work like the Android "back"....it doesn't back out and close apps or menus.
Any suggestions? does anyone know the Andoid back command or how to find it?
thanks

I suppose it should be key 158. This is based on the information in /system/usr/keylayout/Generic.kl and /system/usr/keylayout/sec_touchscreen.kl. These files contain the keymappings (at least in cyanogenmod, but I suppose it's the same in stock?), you should be able to check them out and modify them with a filemanager like ES if you're rooted (sounds like you are). You can modify settings in there, though you might want to make a backup in case you mess anything up.

Related

How do you change the softkeys in messaging program?

I'm looking for a way to change the softkeys when in messaging. I've seen apps that will change the keys on the today screen, but not to change the keys in other programs.
In Messaging, one key is Delete, the other is Menu.
When I had WM5, they were New(message), and Menu. If you know how to change it back in WM6, please let me know. Thanks.
i want to know too
Try AE Button Plus. It has an option to do what you guys are asking. I don't think you can customize it to each app though. Basically if you assign an app or apps to launch from button 1, it will be the same in whatever app you're in.
---
I think it needs some tinkering in the registry. We need to find the ID of the soft-key, and the ID of the New Message function, then bind them together. How I'm going to do that, I don't know yet...

Change a keyboard button to TAB

Is there a way to change a button on the keyboard (for example, the mail button) to TAB?
That way, we could press TAB to move from form to form when filling them out in a browser.
But most importantly, we could now use the ALT + TAB shortcut to switch between apps when in landscape mode?
Any suggestions?
The up/down arrow keys move the cursor from field to field.
Alt+tab would be nice but which key are you remapping to be the Alt key?
I've also posted on a similar topic, and a solution seems to be to modify the keymap files in the Windows folder.
See here :
http://forum.xda-developers.com/showthread.php?t=537818
The files are called like :
eT9.Rhodium.XXXX.kmap.txt
and for France, it is eT9.Rhodium.040C.kmap.txt. This was easy to find because it's the only AZERTY one, I don't know how you find the right one otherwise.
I tried for my "ç" problem (have "FN" + "c" give "ç"), and it works. I think it will work for "tab" instead of "message" (what a totally useless button...). You just need to know the "OX" code tab I think
On the way past, thanks to those you hepled me find this... Thanks to this, I can map many usefull buttons (as "FN" is free for about 10 keys, that gives me 10 free buttons to set).
HHarvey
I already have an ALT key as I lack a Fn key so I just need something for TAB
HarveyR said:
I've also posted on a similar topic, and a solution seems to be to modify the keymap files in the Windows folder.
See here :
http://forum.xda-developers.com/showthread.php?t=537818
The files are called like :
eT9.Rhodium.XXXX.kmap.txt
and for France, it is eT9.Rhodium.040C.kmap.txt. This was easy to find because it's the only AZERTY one, I don't know how you find the right one otherwise.
I tried for my "ç" problem (have "FN" + "c" give "ç"), and it works. I think it will work for "tab" instead of "message" (what a totally useless button...). You just need to know the "OX" code tab I think
On the way past, thanks to those you hepled me find this... Thanks to this, I can map many usefull buttons (as "FN" is free for about 10 keys, that gives me 10 free buttons to set).
HHarvey
Click to expand...
Click to collapse
How do you change it to a shortcut to an application or a function like TAB?
HarveyR said:
I tried for my "ç" problem (have "FN" + "c" give "ç"), and it works. I think it will work for "tab" instead of "message" (what a totally useless button...). You just need to know the "OX" code tab I think
Click to expand...
Click to collapse
The Tab key should be 0x09.
However, mapping Tab to the 'useless' message button does not work for me - anyone successful in doing that?
paphko said:
The Tab key should be 0x09.
However, mapping Tab to the 'useless' message button does not work for me - anyone successful in doing that?
Click to expand...
Click to collapse
That's what I thought but tried mapping it and no luck on my end as well.
vapor said:
Is there a way to change a button on the keyboard (for example, the mail button) to TAB?
That way, we could press TAB to move from form to form when filling them out in a browser.
But most importantly, we could now use the ALT + TAB shortcut to switch between apps when in landscape mode?
Any suggestions?
Click to expand...
Click to collapse
There is no function in Windows Mobile as "ALT+TAB", set up your vain. U have to find a task manager program, which is a sign shortcut, and list a task menu.​
sancho1234 said:
There is no function in Windows Mobile as "ALT+TAB", set up your vain. U have to find a task manager program, which is a sign shortcut, and list a task menu.​
Click to expand...
Click to collapse
I remembered doing this when I had the HTC Universal. That device had both the TAB and ALT button which was what made it possible and why I wanted to replicate it.
vapor said:
I remembered doing this when I had the HTC Universal. That device had both the TAB and ALT button which was what made it possible and why I wanted to replicate it.
Click to expand...
Click to collapse
http://www.google.hu/search?q=windo...&rls=org.mozilla:hu:official&client=firefox-a

mapping the "ok" button is driving me crazy! FOUND SOLUTION!!

hey people, i've been searching for over two hours on how to map the "ok" button to do what it normally does...
i'm on energy rom right now, with everything necessary installed to map keys on my att tilt 2.
what action do i map the "ok" key to?
i've searched and:
i cant find "back to previous screen"
(http://forum.xda-developers.com/showpost.php?p=4754390&postcount=75)
if you map it as close window, and you click the windows key and the ok, the windows key no longer works
(forgot where i found that piece of advice)
what do i do?!
and sorry if its been answered many times, i really cant find it!
EDIT:
FOUND THE SOLUTION, at the bottom of the page. WORKS FLAWLESSLY!
Funnily enough I had to search to see what you were talking about. I assume the OK key on the keyboard.
I can only guess the best mapping would be to the OK in the upper right hand of menus for programs.
What ok button? A hardware button or a software button?
on the att tilt2 theres an "ok" button between shift and home on the keyboard.
i dont know what to map the button to in order for it to work like it supposed to in the original rom and i cant find the solution anywhere.
Bottom row from left to right:
Tilt2: shift, OK, Home, comma (mail), space
TP2: FN, Mail, SMS, comma (SYM), space
Sorry, don't think that there is a solution for mapping the OK button yet. The best you can do is to map it to minimize the current window. This is one of the reasons why I'm switching to RRE's rom, as it includes the AT&T keyboard dll. I use text/email a lot with the keyboard out and want to be able to use the ok to close the message and go back to the message list. You can only do that if the original OK functionality is present.
best bet is to use this program to do so...works great!!
http://forum.xda-developers.com/showpost.php?p=4434797&postcount=1
Solution FOUND:
download this cab:
http://blownfuze.org/files/AEBPlus.CAB
(courtesy of Doug Simmons)
install and use to map the "ok" key as "ok/close"
works like a charm! thanks for all the advice anyway guys!

Changing Bluetooth keyboard keys

Hello all. I recently got the Bluetooth Motorola Keyboard and I was wondering if anyone would be able to explain how to change any of the hardware keys on the keyboard to open an application. Thanks in advance.
any ideas?/shameless bump
At this time there is no way to change any of the keys. There are people working on this at this time but so far nothing has come out of it. I have the same keyboard but haven't found any need to change anything. What are you trying to do?
I like the keyboard I just wish the messaging button was mapped and be able open the process list (last 5 apps running)
Sent from my Xoom using XDA Premium App
I hope somebody figures something out with this. (I was just Google searching for something on this, found nothing and figured we'd have something here on the subject.) The messaging button for example, does nothing. If it atleast opened Google Talk that would make things easier. Would make my usual Talk/Browser/Gmail switching much easier when using the keyboard.
And being able to change the contacts key to something else wouldn't be awful either. I don't think I've ever used contacts on my Xoom besides looking at it once and noting a pretty interface. So many other apps would be more useful.
I may be able to help with this. Can someone zip and post up your "/system/usr/keylayout" and "/system/usr/keychars" directories and post them up?
You should not have a /data/usr/keychars and /data/usr/keylayout directories, but give me a copy of those as well if they exist!
Still need those files if you will please good sirs.
I have no idea how to find the files you need. I plugged in my Xoom but I could never get into the system files. I R DUM
here they are
I came across this in the AOSP dev site http://source.android.com/porting/keymaps_keyboard_input.html#androidKeymapKeyLayoutMapTitle
I checked out my system/usr/keylayout/ folder and it shows 3 vendor layout files. i'm guessing those are the moto keyboard.
It looks like it can be done. Although the your xoom would have to be rooted to push a modded file.
looks like someone fixed this!
http://tinyw.in/078
What about generic bluetooth keyboards? I've seen that many for example use Apple keyboards. I was thinking about getting a generic bt keyboard from eBay and remap the keys. Is there any chance that can be done?
http://forum.xda-developers.com/showthread.php?t=1016594
Sent from my Xoom using Tapatalk
onicrom said:
looks like someone fixed this!
http://tinyw.in/078
Click to expand...
Click to collapse
B Dizzle said:
http://forum.xda-developers.com/showthread.php?t=1016594
Sent from my Xoom using Tapatalk
Click to expand...
Click to collapse
No they didn't fix it. All they did was show how to change what was in the config files for the keyboards and add a WAKE function to an existing button function in order to wake the tablet with the keyboard.
What it looks like is being asked here is how to remap the default application buttons on the motorola keyboard (ie,.. messaging, browser, music, etc). The messaging button does nothing on the Xoom since it can't send text messages and the button was really meant to perform this function on the Atrix. There has also been questions as to how you could remap the browser button to another browser since setting the default browser to something other than the chrome one does nothing.
I've looked over that entire file and not once in there did it show a mapping for those keys to their respective functions. The function buttons have settings there, but I don't know if changing those would have any affect.
Anyone???
in case anyone didn't know, you can press the "search" key + a letter to open up applications. For example, "search" + T opens up Google Talk.
tlkid064 said:
Hello all. I recently got the Bluetooth Motorola Keyboard and I was wondering if anyone would be able to explain how to change any of the hardware keys on the keyboard to open an application. Thanks in advance.
Click to expand...
Click to collapse
A bit late to reply, but maybe this can help you.
As 'gadgetluva' already mentioned, you can use the "search" key + a letter to launch some applications.
Previous versions of android allowed you to change the assignment of these in the settings. But somehow that option is gone in Honeycomb. The code to do it is still in there, but I didn't find any UI entry to it in the settings.
But, there is a dirty work around if you really want to change them. The application Task Switcher (there are multiple ones, I'm talking about the one from Jason Parekh) can be downloaded for free from the market. It's a nice and useful application, but you can also use it to open the hidden "Quick Launch" settings dialog. You do that by going to the settings of Task Switcher and choose Shortcut. That will open the "Quick Launch" settings dialog. In there you can (re-)assign the "search" key shortcuts at will.
It's a bit involved, but you only have to do this once ...
PS: Once you have Task Switcher installed, you can as well bind it to a key your not using with the free application exsbar. That way you also have a quick shortcut to switch between the running applications. A little bit like the Alt-Tab in windows.

[Q] Remap Search Softkey To Camera ??

Remap Search Softkey To Camera .... is there one specifically available for the Evo?? It would be great to have a designated camera button
Edit the file /system/usr/keylayout/supersonic-keypad.kl. The first 8 lines (without a # preceding them) define the action assigned to each key, and its behavior.
Just find the line that calls on the SEARCH action, change it to the CAMERA action, then reboot. (I gave it a quick try, and while the search button does launch the camera, it only does so on long-press.)
Some info about this can be found here.
Additionally, CM7 ROMs allow you to define custom actions for the search key, on tap and on long-press.
Also found this....costs 99cents but rather pay than taking the chance of messing up something
http://www.appbrain.com/app/buttonremapper/com.beansoft.buttonremapper
Apps make a great alternative to modifying files directly, especially considering it's easier to reinstall a few apps that make changes for you than it is to remember how to perform all your mods after an update or ROM change.
Sent from gingerbread-evo-deck

Categories

Resources