Skip to content

Commit 1678da8

Browse files
committed
Shift + Enter while searching
1 parent f29d834 commit 1678da8

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

‎FlashDevelop/Controls/QuickFind.cs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,10 @@ private void FindTextBoxKeyPress(Object sender, KeyPressEventArgs e)
360360
if (e.KeyChar == (Char)Keys.Return && this.findTextBox.Text.Trim() != "")
361361
{
362362
e.Handled = true;
363-
this.FindNext(this.findTextBox.Text, false);
363+
if ((ModifierKeys & Keys.Shift) == Keys.Shift)
364+
FindPrev(findTextBox.Text, false);
365+
else
366+
FindNext(findTextBox.Text, false);
364367
}
365368
}
366369

‎FlashDevelop/Dialogs/FRInDocDialog.cs‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,18 @@ private void DialogLoad(Object sender, EventArgs e)
624624
this.CenterToParent();
625625
}
626626

627+
protected override bool ProcessDialogKey(Keys keyData)
628+
{
629+
if ((keyData & (Keys.Enter | Keys.Shift)) > 0)
630+
{
631+
FindNext(false, false);
632+
633+
return true;
634+
}
635+
636+
return base.ProcessDialogKey(keyData);
637+
}
638+
627639
/// <summary>
628640
/// Gets the replacement text and escapes it if needed
629641
/// </summary>

0 commit comments

Comments
 (0)