That's certainly not true because if we didn't have special logic in FM,
the player would never send focus to IE.  Try it in a popup, focus will
cycle through the elements and not go back to IE.  However, our logic
also returns focus to IE and there's no way to kill that right now.
They shouldn't have had to do that much work though.

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Firdosh Tangri
Sent: Monday, September 24, 2007 12:57 PM
To: [email protected]
Subject: Re: [flexcomponents] Weird Focus Behavior In Internet Explorer

 

I did the preventDefault on KeyFocusChange also but still the tab goes
to the addressbar

seems like you have to hack it through javascript

http://casario.blogs.com/mmworld/2007/06/flex_2_form_bas.html
<http://casario.blogs.com/mmworld/2007/06/flex_2_form_bas.html> 

thanks
firdosh



On 9/24/07, Alex Harui < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote:

If you deactivate the FM, then the Player's default focus behavior will
take over and it will transfer focus if the component is the last one in
its tab order logic.

 

You can try to preventDefault() on the "keyFocusChange" event, but
you're in unsupported territory once you deactivate the FM.

 

________________________________

From: [email protected]
<mailto:[email protected]>
[mailto:[email protected]
<mailto:[email protected]> ] On Behalf Of Firdosh Tangri
Sent: Monday, September 24, 2007 12:13 PM


To: [email protected]
<mailto:[email protected]> 
Subject: Re: [flexcomponents] Weird Focus Behavior In Internet Explorer

 

Yes the focus is already on a textField and I deactivate the
FocusManager which removes 

the events
form.systemManager.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE
, keyFocusChangeHandler);
// stop listening for default button in Capture phase 
form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);

and still when I press the tab key the focus in IE goes back to the
address bar.

thanks
firdosh

On 9/21/07, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote:

I assume focus is already in the app somewhere?  You might want to set a
breakpoint in FocusManager.keyDownHandler to see if it gets hit.  In
theory it shouldn't if you blocked the way you showed here.

 

________________________________

From: [email protected]
<mailto:[email protected]>  [mailto:flexcompone
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] On Behalf Of Firdosh
Tangri
Sent: Friday, September 21, 2007 2:27 PM
To: [email protected]
<mailto:[email protected]> 
Subject: Re: [flexcomponents] Weird Focus Behavior In Internet Explorer

 


stage.addEventListener(KeyboardEvent.KEY_DOWN ,
onCustomFocusManagemnt,false,100,false);

and I called event. stopImmediatePropagation 

but still jumps back to the addressbar

thanks
cheers
firdosh

On 9/21/07, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote:

Flex has special handling of Tab when running in IE.  Attach your
listener with high priority and call stopImmediatePropagation

 

________________________________

From: [email protected]
<mailto:[email protected]>  [mailto:flexcompone
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] On Behalf Of Firdosh
Tangri
Sent: Friday, September 21, 2007 1:56 PM
To: [email protected]
<mailto:[email protected]> 
Subject: [flexcomponents] Weird Focus Behavior In Internet Explorer

 

Hey all,
            I have a event KeyBoardEvent registered with the stage
object which listens for the TAB key and then I do a
customComponent.setFocus() call . I works fine in firefox but in IE it
jumps to the address bar 
Has anyone else had this issue ??

thanks
cheers
firdosh

 

 

 

 

Reply via email to