[haiku-bugs] Re: [Haiku] #4930: Keyboard navigating context menu

  • From: "Ziusudra" <trac@xxxxxxxxxxxx>
  • Date: Mon, 24 May 2010 10:10:01 -0000

#4930: Keyboard navigating context menu
--------------------------------+-------------------------------------------
 Reporter:  humdinger           |       Owner:  axeld    
     Type:  bug                 |      Status:  new      
 Priority:  normal              |   Milestone:  R1       
Component:  Kits/Interface Kit  |     Version:  R1/alpha2
 Keywords:                      |    Platform:  All      
Blockedby:                      |       Patch:  1        
 Blocking:                      |  
--------------------------------+-------------------------------------------

Comment(by Ziusudra):

 Replying to [comment:16 jackburton]:
 > The only problem I can think of is that someone implements a special
 kind of menu and overrides BMenu::Show().
 > In that case, I guess he wouldn't call the base version (while
 BMenu::AttachedToWindow() is safe to be called), since that would produce
 any kind of problems, so he would lose the dynamic menu feature.

 One thing I noticed before making this change was that if you used the
 mouse to open a long dynamic window and left the supermenu open, you could
 now open the submenu with the keyboard. So it seems AddDynamicItem()
 realizes the submenu has already been populated. Thus it should be
 possible to have _Show() run the AddDynamicItem loop when keyDown is
 passed true and have AttachedToWindow() also run the loop.

 I'll try it out tommorow.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/4930#comment:17>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: