OSDN Git Service

領域外でダブルクリックした場合、行全体を選択できるようにした
[fooeditengine/FooEditEngine.git] / Windows / FooEditEngine / FooTextBox.cs
index 2e4edb9..3797bd8 100644 (file)
@@ -1174,7 +1174,10 @@ namespace FooEditEngine.Windows
             if (mouseEvent.Handled)
                 return;
 
-            this.Document.SelectWord(index);
+            if (e.X < this.render.TextArea.X)
+                this.Document.SelectLine(index);
+            else
+                this.Document.SelectWord(index);
             
             this.Refresh();
         }