Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351059 - SWT: Eclipse key bindings do not work on modeless forms
Summary: SWT: Eclipse key bindings do not work on modeless forms
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 05:08 EDT by Bruno Koeferli CLA
Modified: 2021-08-19 11:30 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Koeferli CLA 2011-07-04 05:08:53 EDT
The Eclipse key bindings - f.e. CTRL+A, defined in "org.eclipse.ui.bindings" extension in porject org.eclipse.ui, to select all text in a Scout-StringField - do not work on modeless (none modal) forms (dialogs). 

The problem is that on modeless forms no dialog-org.eclipse.ui.contexts ("org.eclipse.ui.contexts.dialogAndWindow" and "org.eclipse.ui.contexts.dialog") will not be activated. This is caused by dialogs with a null parent which explicitly receives no context (see org.eclipse.ui.internal.contexts.ContextAuthority#checkWindowType)

Reproducible: Always

Steps to Reproduce:
1. Open a modeless Scout form containing a String Field
2. Type some text into this String Field
3. Press CTRL+A to select all text

Possible Workaround (quick and dirty approach?) - activate the missing contexts manually:
---
if (!form.isModal()) {
  IContextService contextService = (IContextService) PlatformUI.getWorkbench().getService(IContextService.class);
  contextService.activateContext(IContextService.CONTEXT_ID_DIALOG_AND_WINDOW);
  contextService.activateContext(IContextService.CONTEXT_ID_DIALOG);
}
---
Comment 1 Matthias Zimmermann CLA 2011-10-11 03:10:11 EDT
updated target milestone to 3.7.2
Comment 2 Matthias Zimmermann CLA 2012-02-29 07:00:42 EST
removed target milestone
Comment 3 Andreas Hoegger CLA 2015-04-17 10:40:30 EDT
Scout Project clean up.
Bugs matching one of the following criteria will be removed:
- SWT, Swing and HTML(RAP) bugs which are not mandatory for the next release. The future is the new HTML UI.
- Bugs concerning a replaced technology.
- old bugs which got obsolete.