[seed] Pango: Steal keyboard focus



commit bbe9aefa9f45bb4f7aee19fb53d3ab7b93ab5eb5
Author: Tim Horton <hortont svn gnome org>
Date:   Wed May 13 04:53:28 2009 -0400

    Pango: Steal keyboard focus
---
 examples/pango.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/examples/pango.js b/examples/pango.js
index f046ae9..86d18cf 100755
--- a/examples/pango.js
+++ b/examples/pango.js
@@ -30,6 +30,9 @@ PangoActor = new GType({
 		
 		var actor_clicked = function (actor, event)
 		{
+			// Steal keyboard focus
+			gtkstage.has_focus = true;
+					
 			// A double click allows the user to edit the text
 			if(event.button.click_count > 1)
 			{



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