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

Bug 299626

Summary: [ToolBar] Item stays hovered if modal dialog was opened in selection event
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Rüdiger Herrmann CLA 2010-01-14 08:23:55 EST
If the selection listener of a push button opens a modal dialog, the button appearrs hovered after the button is closed.
Steps to reproduce:
1. start the examples demo
2. click on the "About" action (message dialog opens up)
  the item appears un-hovered whie the dialog is open (ok)
3. close the dialog
4. the item appears hovered (but it shouldn't)
Comment 1 Tim Buschtoens CLA 2010-02-22 08:40:49 EST
I think this is actually the correct behaviour: If a toolbar gets focused, the item last pressed gets the hover state. Test it in the Eclipse IDE: Focus a toolbar using the tab key. Within the toolbar press a button that opens a dialog. Close the dialog with esc. The button last pressed will have the "hover"-look. That is needed for keyboard-navigation in toolbars.

Another issue however is that toolbars are not focusable with only the mouse in SWT/Win, while in RAP they are. That, if regarded as a bug, could be changed.
Comment 2 Rüdiger Herrmann CLA 2010-02-22 12:34:13 EST
See comment #1