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

Bug 309263

Summary: [ToolBar] Javascript error when using Text widget in the toolbar
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: 1.3 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Ivan Furnadjiev CLA 2010-04-15 02:47:57 EDT
Steps to reproduce:
1. Start Controls Demo -> ToolBar tab
2. Type something in the text filed in the toolbar
3. The following error appears in the JavaScript/Firebug console:
---------
this._hoverItem._onKeyDown is not a function
this._hoverItem._onKeyUp is not a function
---------
The reason for the error is that the _hoverItem is not a ToolItem, but Text. Maybe a check for ToolItem is needed in ToolBar#_onMouseOver.
Comment 1 Ivan Furnadjiev CLA 2010-04-15 05:46:33 EDT
Fixed as suggested - check for ToolItem in ToolBar#_onMouseOver before assign the _hoverItem.