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

  • From: "Ziusudra" <trac@xxxxxxxxxxxx>
  • Date: Fri, 21 May 2010 08:07:19 -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:  0        
 Blocking:                      |  
--------------------------------+-------------------------------------------

Comment(by Ziusudra):

 Finally took a look at submenus not opening again and I was wrong.

 It is in [http://dev.haiku-
 os.org/browser/haiku/trunk/src/kits/interface/Menu.cpp#L2731
 _OkToProceed()] which gets called for longer submenus by [http://dev
 .haiku-os.org/browser/haiku/trunk/src/kits/interface/Menu.cpp#L365
 AttachedToWindow()]. For Applications and Preferences on the Leaf menu the
 if condition is true because the mouse is not over the respective menu
 item.  For other folder submenus the condition is true because stickyMode
 is false (this is true for Applications and Preferences when viewed at
 home/config/be).

 Though even if stickyMode were true they would still not be under the
 mouse. One way I can think to address that would be to add a fKeyDown
 member variable that would be added to that if condition.

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

Other related posts: