I have wxHtmlWindows with panels of various widgets ebbedded,
and some of these are buttons that have hotkeys assigned
using the "&" in their captions. The hotkeys work, but not
exactly as I'd like.
It seems to depend on who has the focus. It seems that the
focus has to be within the same panel as the hot-key for the
hot-key to work. Does the wxHtmlWindow keep the hot-key
from propagating from one embedded panel to another? If so,
is this a bug or feature?
In some cases I have several panels consecutive within the
html window, and I could easily put them together onto one
larger panel. This would give me some extra trouble of
figuring out the sizer issues for the big panel, but if that
worked, it would give me what I wanted ok. However,
sometimes I slip a little text or some clickable links in
between the images, and it would be nice to have all the
hotkeys shown work, regardless of who had the focus. The
tab key will tab from panel to panel, I think that the
hotkeys should work about the same.
I have wxHtmlWindows with panels of various widgets ebbedded,
and some of these are buttons that have hotkeys assigned using the "&" in their captions. The hotkeys work, but not
exactly as I'd like.
It seems to depend on who has the focus. It seems that the
focus has to be within the same panel as the hot-key for the
hot-key to work. Does the wxHtmlWindow keep the hot-key from propagating from one embedded panel to another? If so,
is this a bug or feature?
In some cases I have several panels consecutive within the
html window, and I could easily put them together onto one
larger panel. This would give me some extra trouble of figuring out the sizer issues for the big panel, but if that
worked, it would give me what I wanted ok. However, sometimes I slip a little text or some clickable links in
between the images, and it would be nice to have all the hotkeys shown work, regardless of who had the focus. The
tab key will tab from panel to panel, I think that the
hotkeys should work about the same.
The accelerator code looks up the containment hierarchy for a matching accelerator, but does not travel back down to other nodes in the tree of windows. One way to do what you want is to provide a mechanism for the panels to add items to an accelerator table that is set in the html window.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!