Page 1 of 1
Handling Toshiba

Posted:
Wed May 07, 2014 2:14 pm
by geneellis
My app was requested for the following reason:
The app exits when hit Back key on landing page on Toshiba models.
Does anyone have any advice on how to handle Toshiba? How do we keep it from exiting? Thank you.
Handling Toshiba

Posted:
Wed May 07, 2014 2:14 pm
by geneellis
My app was requested for the following reason:
The app exits when hit Back key on landing page on Toshiba models.
Does anyone have any advice on how to handle Toshiba? How do we keep it from exiting? Thank you.
Re: Handling Toshiba

Posted:
Wed May 07, 2014 2:14 pm
by Support_STA
Hi Geneellis,
To handle back button on Toshiba models, you need to override evenhandler of keypress, keydown... button. Besides that, detecting Toshiba models is necessary too.
Please review bellow code that helps you to detect Toshiba models and override eventhandler:
function detectToshiba(){
var userAgent = new String(navigator.userAgent);
var detectStrIndex = userAgent.search(/TOSHIBA-DTV/i);
if (detectStrIndex != -1){
return true;
}
return false;
}
function keydownhandler(e)
{
switch (e.keyCode)
{
...
case VK_BACK:
// Your code here
...
}
}
Thanks and regards,
STA QA
Re: Handling Toshiba

Posted:
Wed May 21, 2014 6:57 pm
by Support_STA
Hi Geneellis,
To handle back button on Toshiba models, you need to override evenhandler of keypress, keydown... button. Besides that, detecting Toshiba models is necessary too.
Please review bellow code that helps you to detect Toshiba models and override eventhandler:
function detectToshiba(){
var userAgent = new String(navigator.userAgent);
var detectStrIndex = userAgent.search(/TOSHIBA-DTV/i);
if (detectStrIndex != -1){
return true;
}
return false;
}
function keydownhandler(e)
{
switch (e.keyCode)
{
...
case VK_BACK:
// Your code here
...
}
}
Thanks and regards,
STA QA