Bug 96379 - Celleditor loses focus when its context menu comes up
Summary: Celleditor loses focus when its context menu comes up
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2005-05-23 19:41 EDT by Pratik Shah CLA
Modified: 2018-04-09 14:39 EDT (History)
4 users (show)

See Also:


Attachments
Proof of concept patch (1.74 KB, patch)
2005-05-31 22:53 EDT, Billy Biggs CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pratik Shah CLA 2005-05-23 19:41:05 EDT
On GTK, when I bring up a text celleditor's context menu (by right-clicking or 
via the keyboard), the celleditor loses focus and is closed.
Comment 1 Billy Biggs CLA 2005-05-31 22:53:35 EDT
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.
Comment 2 Eric Williams CLA 2018-04-09 14:39:44 EDT
I can no longer reproduce this issue.