stage.focus = null;
However, the FocusManager may fight to put the focus somewhere.
Ah, yes... I remember using that as my original attempt to fix this
last year... I put a stage.focus = null in my enterFrame event handler
and the FocusManager continually grabbed it back from me.
Yeah, I
This is why Rick's suggestion of both a capture and non-capture phase
listener on stage is correct.
Which is what I was doing originally, as per the source code in my first post.
If a display object has the focus, then is removed from the stage,
does it automatically lose the focus (I would
at it.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Wednesday, March 05, 2008 8:01 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Global keyboard capture?
This is why Rick's suggestion of both a capture and non-capture phase
listener
For Flex, use systemManager instead of stage from what i was told and the
capture. no idea on combo sorry
- Original Message
From: thirtyfivemph [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 4, 2008 1:32:58 PM
Subject: [flexcoders] Global keyboard capture?
I'm
For Flex, use systemManager instead of stage from what i was told and the
capture. no idea on combo sorry
Doesn't make a difference.
The stage should be as low-level as it gets... shouldn't all keyboard
events pass through the stage in either the capture or bubble phase?
Maybe I'm missing
Keep in mind that something must broadcast the event. a TextInput
will broadcast a keyboard event. A container or Application will not.
Troy Gilbert wrote:
For Flex, use systemManager instead of stage from what i was told and the
capture. no idea on combo sorry
Doesn't make a
Keep in mind that something must broadcast the event. a TextInput
will broadcast a keyboard event. A container or Application will not.
Keyboard events are broadcast by the player. I'm looking to grab (or
look at) all of them. It shouldn't be dependent on anyone broadcasting
them.
Troy.
In my experience (which was actually with AIR, not a Flex browser
based app) they are. Listening to keyboard events at the main
windowedApplication did nothing.
Also, I'll add that any Caught keyboard event did not continue to
bubble up to the main WindowedApplication (unless you
.
Rick Winscot
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeffry Houser
Sent: Tuesday, March 04, 2008 6:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Global keyboard capture?
In my experience (which was actually with AIR, not a Flex
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Tuesday, March 04, 2008 2:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Global keyboard capture?
For Flex, use systemManager instead of stage from what i was told and the
capture
So – in reality… your implementation may determine which is better to use.
But I do have something for you that might help. If you are having problems
with the capture/bubbling/target phases you probably need to add two
listeners as…
You should've read all the way back to my original post...
04, 2008 8:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Global keyboard capture?
A continuance on the topic...
From the Flex reference: All keyboard and mouse activity that is not
expressly trapped is seen by the SystemManager, making it a good place
to monitor activity
else (face turns red).
Rick Winscot
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Sherif Abdou
*Sent:* Tuesday, March 04, 2008 2:43 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Global keyboard capture?
For Flex, use systemManager
]
On Behalf Of Rick Winscot
Sent: Tuesday, March 04, 2008 8:18 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Global keyboard capture?
A continuance on the topic...
From the Flex reference: All keyboard and mouse activity that is not
expressly
[mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Tuesday, March 04, 2008 9:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Global keyboard capture?
So - in reality... your implementation may determine which is better
to use.
But I do have something for you that might help
15 matches
Mail list logo