[gtkhtml] Bug #666850 - Grab focus on context menu popup in editor



commit 33ea546b04534c5ae2bc55e60d5469ad27194ae5
Author: Milan Crha <mcrha redhat com>
Date:   Fri Apr 6 20:03:36 2012 +0200

    Bug #666850 - Grab focus on context menu popup in editor

 components/editor/gtkhtml-editor.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/components/editor/gtkhtml-editor.c b/components/editor/gtkhtml-editor.c
index 6881c41..1611ce2 100644
--- a/components/editor/gtkhtml-editor.c
+++ b/components/editor/gtkhtml-editor.c
@@ -69,6 +69,8 @@ editor_show_popup_menu (GtkhtmlEditor *editor,
 	html = gtkhtml_editor_get_html (editor);
 	menu = gtkhtml_editor_get_managed_widget (editor, "/context-menu");
 
+	gtk_widget_grab_focus (GTK_WIDGET (html));
+
 	/* Did we right-click in a selection? */
 	in_selection =
 		html_engine_is_selection_active (html->engine) &&



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]