Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 96379

Summary: Celleditor loses focus when its context menu comes up
Product: [Eclipse Project] Platform Reporter: Pratik Shah <ppshah>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: billy.biggs, cocoakevin, ericwill, snorthov
Version: 3.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Proof of concept patch none

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.