| Summary: | Celleditor loses focus when its context menu comes up | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Pratik Shah <ppshah> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | billy.biggs, cocoakevin, ericwill, snorthov | ||||
| Version: | 3.1 | Keywords: | triaged | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux-GTK | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Pratik Shah
Created attachment 22117 [details]
Proof of concept patch
When context menus open, GTK+ sends focus events to the affected widgets.
The attached patch demonstrates how to detect when a GtkEntry's popup menu is
about to be displayed, and how to block the corresponding FocusOut event.
There is some prior art for this solution: it is basically how GTK+ ignores the
focus event for their own cell editors.
While this solution is appealing, it is dangerous, and I think it may be too
late for 3.1. Note that this problem is reproducable in Eclipse 3.0.
I can no longer reproduce this issue. |