Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 418887

Summary: [Menu] Menu is activated if a mnemonic is used to create a shell
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: 2.2   
Target Milestone: 2.2 M3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Snippet none

Description Tim Buschtoens CLA 2013-10-08 04:37:34 EDT
Created attachment 236200 [details]
Snippet

1. Run attached Snippet
2. Press "CTRL+ALT+B"
3. Menu gets activated even though a non-menu mnemonic was triggered.
Comment 1 Tim Buschtoens CLA 2013-10-08 06:23:59 EDT
Fixed with commit 2f61b1248a1d5cf2ea9b8f853b957758c5c8f5ec.

Basically because I registered the MnemonicHandler#deactivate method directly as a listener for changes in the activate state of the shell it interpreted the event object as a boolean that allowed the method to active the menu. Confusing, I know... :-)