Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 4
Registered: ‎09-03-2011
My Device: Torch 9800
My Carrier: TIM

Input text field on torch don't allow direct type when it receive focus

Hello

 

I have an app with only one text field, when I run it on a torch 9800 simulator or real device with focus based navigation, if I use the track ball to focus the text field, the field gets the blue line around it but I am not able to write any text on it, I need to click on the text field to be able to write to it.

 

On a 9700 simulator when I focus the field I can immediately write to it.

 

the app has only a simple index.html with

<input type="text" id="field1" size="10">

 

What should I do to be able to directly write to the focused field on the torch device without having to tap on the field?

 

Thanks for any help

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Input text field on torch don't allow direct type when it receive focus

Which version of the WebWorks SDK are you using?  This sounds like an issue that was corrected in the past.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
Posts: 4
Registered: ‎09-03-2011
My Device: Torch 9800
My Carrier: TIM

Re: Input text field on torch don't allow direct type when it receive focus

Hi Tim

 

I was running 2.1.0.25, I updated to the latest 2.1.1.38,

 

but the problem persists, it is just one input field, I can get it focused but unless I touch it I cannot write anything on it

 

the page is simple

 

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="user-scalable=no, width=device-width; height=device-height" />

<title>jQuery Mobile Web App</title>

<script type="text/javascript">

function cc(){

blackberry.focus.setFocus("tt")

}

</script>

</head>

<body>

Entra: <input type="text" size="20" value="" id="tt">

<a href="#" onClick="cc()">Clique</a>

</body>

</html>

 

Any idea?

 

Thanks

New Contributor
Posts: 4
Registered: ‎09-03-2011
My Device: Torch 9800
My Carrier: TIM

Re: Input text field on torch don't allow direct type when it receive focus

Hi Tim

 

I found half of the solution, I downloaded a new version of the simulator an it works fine even with the old sdk

 

Now it is working on the simulator 6.0.0.534 , but not on the device, my device is running 6.0.0.246 is not,

 

I will check for an update. of the device.

 

Thanks

New Contributor
Posts: 4
Registered: ‎09-03-2011
My Device: Torch 9800
My Carrier: TIM

Re: Input text field on torch don't allow direct type when it receive focus

 

I found a workarond,

 

running simulator 6.0.0.227  I have the problem

 

running simulator 6.0.0.534 it works good.

 

I tried to update my device but it says it is updated so I found a workaround

 

on my input field I call a javascript function that selects the field

 

<input type="text" size="20" value="" id="tt" onmouseover="seleciona(this)">

 

function seleciona(item){
 item.focus(); 
 item.select();
}


It does the trick

 

Thanks