Bug 14448 - Setting the accelerator of a menu item gives highlight to tool bar entries
Summary: Setting the accelerator of a menu item gives highlight to tool bar entries
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux-Motif
: P3 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14070
  Show dependency tree
 
Reported: 2002-04-23 14:47 EDT by Tod Creasey CLA
Modified: 2002-11-12 10:07 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2002-04-23 14:47:21 EDT
Build 20020416
On Linux Motif setting the accelerator of a MenuItem can cause the selection
(but not activation) of an entry in a ToolBar. If you then hit return the entry
is selected. This can be annoying if the only entry in the ToolBar is the close
icon.

The line

OS.XtSetValues (handle, argList, argList.length / 2);

in MenuItem.setAccelerator(int) is the one that will cause the selection of an
entry in the tool bar in the active composite.

STEPS
1) Open a Java Perspective
2) Close all of the views except Java Packages and the Outline View
3) Move the Java Packages View to the top left side and the outline view to the
bottom left side
4) Open a Java editor
5) Close the editor. The Outline View will be activated (good) but so will it's
only icon - the close button.
Comment 1 Grant Gayed CLA 2002-10-23 15:43:34 EDT
Fixed > 1023 as a side effect of fixing (4) in bug 20075.