Re: KeyListeners on ImageView

2011-03-08 Thread Chris Bartlett
On 8 March 2011 09:38, Bill van Melle wrote: > When I played around with your example, substituting a focusable component > (TextInput) for ImageView in one of the displays, or making the displays > host a single, maximized window (my standard use case), I got even weirder > behavior, such as inp

Re: KeyListeners on ImageView

2011-03-08 Thread Greg Brown
> This seems like a clever solution. I'm not sure it quite works right, > though. When I run your example, if I set the window system focus to the > other display, without clicking inside one of the windows inside the > display, it appears that Pivot's focus doesn't change -- > Window.getActi

Re: KeyListeners on ImageView

2011-03-07 Thread Chris Bartlett
On 8 March 2011 09:38, Bill van Melle wrote: > This seems like a clever solution. I'm not sure it quite works right, > though. When I run your example, if I set the window system focus to the > other display, without clicking inside one of the windows inside the > display, it appears that Pivot

Re: KeyListeners on ImageView

2011-03-05 Thread Greg Brown
> Would it be reasonable for Window#requestFocus to attempt to set focus to > its child, and if that failed, to take it itself? Yes, that might work.

Re: KeyListeners on ImageView

2011-03-05 Thread Bill van Melle
> Could you clarify what you mean by 'top-level windows'? > http://pivot.apache.org/tutorials/windows.html > Sorry, that was my shorthand for "org.apache.pivot.wtk.Window opened on a Display object", thus corresponding in an obvious way to a window-system window. So you interpreted me correctly.

Re: KeyListeners on ImageView

2011-03-04 Thread Chris Bartlett
On 5 March 2011 08:21, Bill van Melle wrote: > On Fri, Mar 4, 2011 at 4:44 AM, Greg Brown wrote: > >> I had a similar thought. Unfortunately, making a Window focusable will >> break apps that currently call window.requestFocus() to focus the content >> component. Those apps would have to change

Re: KeyListeners on ImageView

2011-03-04 Thread Bill van Melle
On Fri, Mar 4, 2011 at 4:44 AM, Greg Brown wrote: > I had a similar thought. Unfortunately, making a Window focusable will > break apps that currently call window.requestFocus() to focus the content > component. Those apps would have to change to call > window.getContent().requestFocus(). That's

Re: KeyListeners on ImageView

2011-03-04 Thread Greg Brown
tt wrote: > >> CCed to the Dev mailing list where it is perhaps best to continue the >> discussion >> (Some context for the Dev list >> http://apache-pivot-users.399431.n3.nabble.com/KeyListeners-on-ImageView-tp2600622p2600622.html) >> >> On 4 March 201

Re: KeyListeners on ImageView

2011-03-04 Thread Chris Bartlett
best to continue the > discussion > (Some context for the Dev list > > http://apache-pivot-users.399431.n3.nabble.com/KeyListeners-on-ImageView-tp2600622p2600622.html > ) > > On 4 March 2011 11:35, Bill van Melle wrote: > >> I shouldn't have to stand on my head creat

Re: KeyListeners on ImageView

2011-03-04 Thread Greg Brown
scussion > (Some context for the Dev list > http://apache-pivot-users.399431.n3.nabble.com/KeyListeners-on-ImageView-tp2600622p2600622.html) > > On 4 March 2011 11:35, Bill van Melle wrote: > I shouldn't have to stand on my head creating a focusable subclass of > WindowSkin.

Re: KeyListeners on ImageView

2011-03-04 Thread Chris Bartlett
CCed to the Dev mailing list where it is perhaps best to continue the discussion (Some context for the Dev list http://apache-pivot-users.399431.n3.nabble.com/KeyListeners-on-ImageView-tp2600622p2600622.html ) On 4 March 2011 11:35, Bill van Melle wrote: > I shouldn't have to stand on