TC8000 KeyCode Mapping

Hello everyone,

we have TC8000 devices in use, which accesses a web application via Enterprise Browser.

I'ld like to remap the Back-Key (KeyCode 4) to the F3-Key (KeyCode 133) inside the EB.

I tried this using the keycodemapping.xml

keycodemapping.xml:

<?xml version = "1.0"?>

<KeyCodeConfiguration>

    <KeyCodes>

        <KEYCODE  name="KEYCODE_BACK" from="4" to="133" /> 

    </KeyCodes>

</KeyCodeConfiguration>

When I use a test site to see which keycode gets "send" when pressing the back button, it correctly displays the keycode 133.

Unfortunately, when I access the web application and then press the back button, it doesn't execute the F3 Button.

I thought, that it may be an issue of the web app itself, which results in not processing the keycode 133, yet when I send a

input keyevent 133

via adb shell, the F3-Action get's executed correctly.

Do you have an idea, on what's going wrong here?

Am I missing something?

Kind regards,

André L.

Andre Loehr
Anyone? :/

Anyone? :/

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Joydeep Chakraborty
Is it a SAP ITS Mobile

Is it a SAP ITS Mobile application?

Can you please try setting Iswindowskey to 1 in the config.xml and retry?

<isWindowsKey value="1"/>

Config.xml Reference - Zebra Technologies TechDocs

Regards,

Joydeep

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Andre Loehr
Hello Joydeep,yes, it's a SAP

Hello Joydeep,

yes, it's a SAP ITS Mobile application.

I just tried it with the isWindowsKey attribute set to 1, but still no luck.

Attached you can also find my current Config.xml.

Kind regards,

André

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Joydeep Chakraborty
Hi,As I understand you are

Hi,

As I understand you are trying to simulate F3 Back in SAP ITS Mobile environment.

This can not be done via Keycodemapping.xml as this supports only the keycaptured via keycapture APIs not the onKeydown Javascript method which is being used in SAP ITS Mobile

Please insert the following metatag in page

<META HTTP-Equiv="KeyCapture" Content="KeyValue:0x04; Remap:0x85">

KeyCapture Module - Zebra Technologies TechDocs

If you want this feature in all the pages then use default metatag feature

<DefaultMetaTags>

  
<MetaTag value="KeyCapture~KeyValue:0x04; Remap:0x85;"/>

</DefaultMetaTags>

If you want this across all the applications please remap the Back key from KeyMapping Manger from Mx

Full MX Feature Matrix - Zebra Technologies TechDocs

Regards,

Joydeep

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Andre Loehr
Joydeep, I can't thank you

Joydeep, I can't thank you enough for this answer.

The additional DefaultMetaTag totally solved my problem.

I didn't knew that the KeyCapture API has to run on the SAP ITS Mobile application, in order to work with the keycodemapping.xml.

I always thought, this works on the device itself.

As I have no access to the source code and a adjustment of it wasn't really an option, I sticked with the DefaultMetaTag Option.

Am I right with the assumption, that the 0x04 and 0x85 KeyCodes are the default Android codes?

Kind regards,

André

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Joydeep Chakraborty
Yes 0x04 is the keycode of

Yes 0x04 is the keycode of back key in hex.(Decimal value 4)

KeyEvent  |  Android Developers

0x85 is the Hex keycode of F3.(Decimal value 133)

KeyEvent  |  Android Developers

Regards,

Joydeep

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


David Albarracin
Hi Andre,I wonder if you can

Hi Andre,

I wonder if you can help me. I want to disable the recent button on the TC8000 but i dont know the android key code for this button. is it possible to do it?

Thank you

David

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Joydeep Chakraborty
HI David,Why do you want to

HI David,

Why do you want to disable the recentbutton? Can you please elaborate the use case?

Recentbutton does not generate/send any keycode when pressed. So it can not be disabled via keycaputre API.

If you want to have a full kiosk mode, please run Enterprise Browser in Enterprise Home Screen Full kiosk mode.

Hope this will help.

Device Lock-down With EHS - Zebra Technologies TechDocs

Regards,

Joydeep

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Andre Loehr
Hi David,as I found out by

Hi David,

as I found out by others (How to disable "Recent" button in TC8000?​) and myself it seems like you can't disable the Recent Button. I'm not sure why Zebra doesn't want us to do so, but it's not possible. I also encountered issues with the Enterprise Browser when disabling the Recent Button in it's Config.xml.

Kind regards,
André

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments