Skip to content

Commit 53bdc9f

Browse files
committed
Control+F now focuses find in f&r dialogs...
1 parent e6a5340 commit 53bdc9f

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

FlashDevelop/Dialogs/FRInDocDialog.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ private void ApplyLocalizedTexts()
351351
this.bookmarkAllButton.Text = TextHelper.GetString("Label.BookmarkAll");
352352
this.replaceAllButton.Text = TextHelper.GetString("Label.ReplaceAll");
353353
this.replaceButton.Text = TextHelper.GetString("Label.Replace").Replace("...", "");
354-
this.closeButton.Text = TextHelper.GetString("Label.Close");
354+
this.closeButton.Text = TextHelper.GetString("Label.Close").Replace("&", "");
355355
this.lookComboBox.Items[0] = TextHelper.GetString("Info.FullSourceCode");
356356
this.lookComboBox.Items[1] = TextHelper.GetString("Info.CurrentSelection");
357357
this.lookComboBox.Items[2] = TextHelper.GetString("Info.CodeAndStrings");
@@ -627,11 +627,16 @@ private void DialogLoad(Object sender, EventArgs e)
627627
}
628628

629629
/// <summary>
630-
///
630+
/// Process shortcuts
631631
/// </summary>
632632
protected override Boolean ProcessDialogKey(Keys keyData)
633633
{
634-
if ((keyData & Keys.KeyCode) == Keys.Enter && (keyData & Keys.Shift) > 0)
634+
if (keyData == (Keys.Control | Keys.F))
635+
{
636+
this.findComboBox.Focus();
637+
return true;
638+
}
639+
else if ((keyData & Keys.KeyCode) == Keys.Enter && (keyData & Keys.Shift) > 0)
635640
{
636641
this.FindNext(false, false);
637642
return true;

FlashDevelop/Dialogs/FRInFilesDialog.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,19 @@ private void DialogLoaded(Object sender, System.EventArgs e)
854854
this.CenterToParent();
855855
}
856856

857+
/// <summary>
858+
/// Process shortcuts
859+
/// </summary>
860+
protected override Boolean ProcessDialogKey(Keys keyData)
861+
{
862+
if (keyData == (Keys.Control | Keys.F))
863+
{
864+
this.findComboBox.Focus();
865+
return true;
866+
}
867+
return base.ProcessDialogKey(keyData);
868+
}
869+
857870
/// <summary>
858871
/// Some event handling when showing the form
859872
/// </summary>

0 commit comments

Comments
 (0)