Heh. erm. no, but close. If anybody is out-of-their-mind-bored and
wants to hack a nice patch to blackbox-0.6x, here's what needs to be
done (<disclaimer> I think--or I may be totally incorrect </disclaimer>).
blackbox needs to do an XGrabKeyboard when a menu is activated
(any menu, so we can do keyboard-menu navigation on window menus
too...), and handle the KeyPress XEvent following the XGrabKeyboard,
to allow menu navigation via keystrokes. Blackbox::process_event looks
to be the right place to poll for KeyPress's of XK_Escape, XK_Up,
XK_Down, XK_Right, XK_Left, and XK_Return. And, obviously, code will
have to be put into blackbox that moves the menu selection upon
keypress. MAKE SURE that you XUngrabKeyboard on either XK_Escape
or XK_Return or BScreen::WindowClose, etc. or you'll be forced to
power-off your machine unless you can telnet in and kill X off
(not that I've ever made that mistake, mind you... =:) ).
Anywho, that's the hardest part of this whole thing.
The rest is a piece of cake.
Anyone out-of-their-mind-bored these days?? =:)
* Daniel Tomko <[EMAIL PROTECTED]> [000412 18:47]:
> >
> > Come on, folks! ICCCM compliance is nice, but there are a bunch of us out
> > here with Intel hardware that would benefit from a patch :].
>
> Not just Intel people would benifit. I'd love to be able to access the
> menu from ANY bbkeys binding on my Mac...
>
> What would be cool is if we could bind the menu to a window, and then list
> MenuUp as a modifier in .bbkeysrc. Then we could do something like this:
>
> KeyToGrap(Up), WithModifier(MenuUp), WithAction(MenuSelectPrevious)
> KeyToGrap(Down), WithModifier(MenuUp), WithAction(MenuSelectNext)
>
> Daniel
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=
Jason Kasper (vanRijn)
Systems Engineer
bash$ :(){ :|:&};:
VORFA
PGP signature