#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 stippi): I don't understand why that would matter. Could fKeydown be true in this case? If I understand things correctly, KeyDown() can only be invoked on a BMenu that is already attached to a BWindow, since it's a hook method that is called when the BMenu receives a message, which it can only receive when it's attached. That in turn means that when _OkToProceed() is called from within AttachedToWindow(), fKeyDown could never be true. So _OkToProceed() could instead get a boolean parameter which defaults to false, and AttachedToWindow() would not pass anything and thus use the default value. From the other place, where fKeyDown would be true, you can then pass this parameter, overriding the default value. -- Ticket URL: <http://dev.haiku-os.org/ticket/4930#comment:10> Haiku <http://dev.haiku-os.org> Haiku - the operating system.