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 thanks firdosh On 9/24/07, Alex Harui <[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] *On Behalf Of *Firdosh Tangri > *Sent:* Monday, September 24, 2007 12:13 PM > *To:* [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]> 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] > *On Behalf Of *Firdosh Tangri > *Sent:* Friday, September 21, 2007 2:27 PM > *To:* [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]> 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] > *On Behalf Of *Firdosh Tangri > *Sent:* Friday, September 21, 2007 1:56 PM > *To:* [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 > > > > > > >
