cancel
Showing results for 
Search instead for 
Did you mean: 

Tab to function key then enter does not process function key ITSMOBILE

bruce_fackerell
Explorer
0 Kudos

Hi All,

Issue.

When tabbing to a function key( focus is on this key) and then hitting enter we wish the function key to be executed. This is not working, in ITSMOBILE. We are using SYMBOL/Motorola MC9190 with industrial browser (wavelink web emulator telnetCE)

What is working

1) is that if we hit the function key it works ie the mapping of the function key is successful. Have included DEVINCLUDE_SYMBOL3090 for parameter ~ITSMOBILEDEVICEINCLUDE and when we press a function key it works.

2) if we use a mouse in browser ( or stylus on the RF) then the function key works.

What I have tried.

I have considered and tried without success to make a copy of MOBILE.JS and change the parameter ~ITSMOBILEJSINCLUDE

to point to the copy and then change this.

Debugging the script this comes up.

However I dont know how to capture either what the function key or the OKcode would be.

Perhaps there is a totally different way of approaching this.

Thoughts?

Regards

Bruce

Accepted Solutions (0)

Answers (1)

Answers (1)

bruce_fackerell
Explorer
0 Kudos

Hi All,

This solution lacks elegance but may inspire someone to a neater solution. It was done by replacing the mobile.js with our mobilecopy.js with the following code in the /* --- DEVICE SPECIFIC SCRIPTS -


*/ section of code. Hope it helps.

Regards

Bruce



else if (event.keyCode == 13)
  {

  var l_element = event.srcElement.outerHTML ;

  var l_string = l_element.split("setOkCode");
  if (!!l_string[1])
{

  var l_secondpart = l_string[1].slice(2,15);

  var l_index = l_secondpart.indexOf("'")

  var l_okcode = l_secondpart.slice(0,l_index);

  document.forms["mobileform"]["~OkCode"].value = l_okcode;
  submitOnce();

}
else
{

  /* ENTER */
    setOkCodeEnter();
    eventdone = true;
}