Michael Sweet wrote:

> Alvin wrote:
>> Hello all,
>> 
>> I am encountering a possible bug with Fl_Menu_Bar. Before I post a bug
>> report I wanted to check here first.
>> 
>> What I am seeing is that if I have a Fl_Menu_Bar with a submenu "&File",
>> then I can press the 'F' key to have the File submenu expand. I would
>> expect File to expand when ALT+F is pressed in combination.
>> 
>> I checked with fluid and it happens there too. To reproduce, open fluid.
>> Then press the 'f' key. You will see that the File menu opens. This
>> happens for all the submenus when the underlined character is pressed.
>> 
>> Is anyone else experiencing this?
>> 
>> I'm using the latest snapshot: fltk 1.1.x-r6021
> 
> It isn't a bug, there just isn't any widget that wants the 'f' key
> event, so it gets re-sent as a shortcut which Fl_Menu_Bar will
> respond to.  The alt stuff is just for global shortcuts, but otherwise
> pressing the underlined letter will select that menu/item...
> 

Thanks good to know it isn't a bug. This actually helps me as I am trying to
get a widget act on FL_KEYDOWN. Now that I know that when the menu expands,
it means my widget isn't claiming the key.

Thanks,

-- 
Alvin
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to