Skip to content

Commit 0fb802e

Browse files
committed
添加右键菜单,修正查找/替换对话框文本框聚焦逻辑
1 parent 8ac772c commit 0fb802e

File tree

4 files changed

+250
-27
lines changed

4 files changed

+250
-27
lines changed

frmFindReplace.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public static void ShowForReplace(frmFindReplace newFrm, TextEditor editor)
214214
theDialog.panelCheckBox.Top = 221;
215215
theDialog.Show();
216216
theDialog.Activate();
217-
217+
theDialog.txtFind2.Focus();
218218
if (!editor.TextArea.Selection.IsMultiline && editor.TextArea.Selection.GetText() != "")
219219
{
220220
theDialog.txtFind.Text = theDialog.txtFind2.Text = editor.TextArea.Selection.GetText();
@@ -237,7 +237,7 @@ public static void ShowForFind(frmFindReplace newFrm, TextEditor editor)
237237
theDialog.panelCheckBox.Top = 174;
238238
theDialog.Show();
239239
theDialog.Activate();
240-
240+
theDialog.txtFind.Focus();
241241
if (!editor.TextArea.Selection.IsMultiline && editor.TextArea.Selection.GetText() != "")
242242
{
243243
theDialog.txtFind.Text = theDialog.txtFind2.Text = editor.TextArea.Selection.GetText();

frmMain.Designer.cs

Lines changed: 153 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)