Also, does your List have a cellRenderer?
I’d imagine if so that it is capturing the keyDown and wouldn’t
propagated it back to the List (especially if the renderer is a VBox or
something that would have scrolling logic built in for those keys).
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
Sent: Friday, April 15, 2005 10:46
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] keyDown
& List
Is your keyDown event attached to the list or to each of the elements
of
the list?
If it's attached to the list, I'd expect to see
the behaviour you're
describing.
If it's attached to each of the elements of the
list I'm not sure what's
going on.
Spike
JesterXL wrote:
> Ok, this is weird. I'll probably track
it down, but still waking up.
>
> If I click on a List, and hit a key, my
keyDown event is fired.
>
> If I click on an item in the list, and hit a
key, my keyDown event isn't
> fired.
>
> If I click on an item in the list, and click
the list where an item is not,
> and then hit a key, my keyDown event is
fired.
>
> ...wtf? Why does selecting an item in my
list prevent this? Key's like "d"
> and stuff will automatically scroll (I'm
guessing it's capturing the key and
> trying to scroll to the first label that
starts with the letter "d", like
> the ComboBox does).
>
> If it's any help, I have 2 lists in
existence; since my TabNavigator has
> creationPolicy all... is maybe 1 intercepting
it or something? This is
> annoying...
>
> --JesterXL
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
--
--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk
Do you cfeclipse? http://cfeclipse.tigris.org
Yahoo! Groups Links