Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sopena Novales <masono@mono-cvs.ximian.com>2005-10-21 12:38:09 +0400
committerMario Sopena Novales <masono@mono-cvs.ximian.com>2005-10-21 12:38:09 +0400
commit3e4651222052c5c705b2d30f628695a48d519ee2 (patch)
tree7ee9a760a06b4fb34ebf3a754e809c61d2b1820f /docbrowser
parent534c8a0134796cd6ac9045e2e5eb542bffca45d4 (diff)
2005-10-21 Mario Sopena <mario.sopena@gmail.com>
* browser.cs: Workaround to fix the stealing focus bug #76346 svn path=/trunk/mono-tools/; revision=52017
Diffstat (limited to 'docbrowser')
-rw-r--r--docbrowser/ChangeLog3
-rw-r--r--docbrowser/browser.cs7
2 files changed, 10 insertions, 0 deletions
diff --git a/docbrowser/ChangeLog b/docbrowser/ChangeLog
index 4a837790..0b0dea66 100644
--- a/docbrowser/ChangeLog
+++ b/docbrowser/ChangeLog
@@ -1,3 +1,6 @@
+2005-10-21 Mario Sopena <mario.sopena@gmail.com>
+ * browser.cs: Workaround to fix the stealing focus bug #76346
+
2005-10-10 Mario Sopena <mario.sopena@gmail.com>
* browser.cs: when saving edit changes, take into account that uncompiled
sources are handled differently
diff --git a/docbrowser/browser.cs b/docbrowser/browser.cs
index e4682a2a..47639281 100644
--- a/docbrowser/browser.cs
+++ b/docbrowser/browser.cs
@@ -2184,6 +2184,12 @@ class Tab : Notebook {
public System.Xml.XmlNode edit_node;
public string edit_url;
+ void FocusOut (object sender, FocusOutEventArgs args)
+ {
+ if (TabMode == Mode.Editor)
+ text_editor.GrabFocus ();
+ }
+
public Tab(Browser br)
{
@@ -2255,6 +2261,7 @@ class Tab : Notebook {
text_editor.Buffer.Changed += new EventHandler (EditedTextChanged);
text_editor.WrapMode = WrapMode.Word;
sw.Add(text_editor);
+ text_editor.FocusOutEvent += new FocusOutEventHandler (FocusOut);
//
// XML editing buttons