Summary: | ACC - I20030205 accelerators issues | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Christophe Cornu <christophe.cornu+eclipse> |
Component: | SWT | Assignee: | Christophe Cornu <christophe.cornu+eclipse> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P1 | CC: | airvine, knut_radloff, truonghw |
Version: | 2.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux-GTK | ||
Whiteboard: |
Description
Christophe Cornu
2003-02-05 14:08:11 EST
You found it. You fix it. Actually this also occurs on GTK 2.0.6 The correct platform behaviour can be seen with: open gedit Bring Preferences > Editor > Font Colors Press Alt U or Alt S and see the checkboxes being toggled Fails on GTK. Hidden button still gets mnemonic event one out of two. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setText("PR31009"); shell.open(); Button button = new Button(shell, SWT.CHECK); button.setText("H&ello"); button.setBounds(0,0,100,20); button = new Button(shell, SWT.CHECK); button.setText("H&ello 2"); button.setBounds(0,40,100,20); button.setVisible(false); button = new Button(shell, SWT.CHECK); button.setText("&Right there"); button.setBounds(0,80,100,20); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } } Fixed >20030210 still happens, a fix for IM has broke this fix. *** Bug 32749 has been marked as a duplicate of this bug. *** *** Bug 34728 has been marked as a duplicate of this bug. *** *** Bug 34720 has been marked as a duplicate of this bug. *** This test case will fail: public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setText("PR31009"); shell.open(); Button button = new Button(shell, SWT.CHECK); button.setText("H&ello"); button.setBounds(0,0,100,20); Composite composite = new Composite (shell, SWT.BORDER); composite.setBounds (0, 35, 110, 22); button = new Button(composite, SWT.CHECK); button.setText("H&ello 2"); button.setBounds(1,1,100,20); composite.setVisible(false); button = new Button(shell, SWT.CHECK); button.setText("&Right there"); button.setBounds(0,80,100,20); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } } Fixed > 20030403 (HEAD) *** Bug 38250 has been marked as a duplicate of this bug. *** |