OSDN Git Service

バックスペースキーを押したタイミングで補完候補が表示されるバグを修正した
authorkonekoneko <test2214@hotmail.co.jp>
Tue, 15 Nov 2016 16:01:03 +0000 (21:31 +0530)
committerkonekoneko <test2214@hotmail.co.jp>
Tue, 15 Nov 2016 16:01:03 +0000 (21:31 +0530)
Core/Document.cs

index 4ed7083..8ec563d 100644 (file)
@@ -1039,6 +1039,8 @@ namespace FooEditEngine
                 var input_str = string.Empty;
                 if (s == Document.NewLine.ToString())
                     input_str = s;
+                else if (s == string.Empty && length > 0)
+                    input_str = "\b";
                 //入力は終わっているので空文字を渡すが処理の都合で一部文字だけはそのまま渡す
                 if (this.AutoComplete != null)
                     this.AutoComplete.ParseInput(input_str);