On 21 July 2011 03:23, Bill van Melle <bill.van.me...@gmail.com> wrote: > Display#getActiveDisplay() would be useful, since the (global) > UnprocessedKeyHandler could use it to "dispatch" to the active Display. Â But > that's kind of a workaround for what I was hoping to get.
Yes, in the original thread I posted code which looked to be able to achieve what was required, but in a very indirect way. It epitomised the term workaround. > In the referenced thread, Chris and/or I suggested that there be another step > in the > pseudocode above -- if there's an active display, but no identifiable > "destinationComponent" to send it to, then try sending it to the active > display's key handler before going to  UnprocessedKeyHandler. I elaborated on the 'no identifiable destinationComponent' part to include a check for an active org.apache.pivot.wtk.Window in the 'active' OS window, but thinking about it more, I'm not sure that does anything but complicate matters.