|
|
|
@ -395,10 +395,8 @@ public partial class MainForm : Form |
|
|
|
|
|
|
|
|
|
// check if we should apply the keypress to the search results |
|
|
|
|
if ( e.KeyCode == Keys.Escape ) { |
|
|
|
|
string prevSearchQuery = mSearchQuery.Text ; |
|
|
|
|
mSearchQuery.Text = "" ; |
|
|
|
|
if ( prevSearchQuery == "" ) |
|
|
|
|
updateSearchResults( "" ) ; |
|
|
|
|
e.Handled = true ; |
|
|
|
|
} else if ( e.KeyCode == Keys.Left || e.KeyCode == Keys.Right ) { |
|
|
|
|
mSearchResults.Focus() ; |
|
|
|
|
SendKeys.SendWait( "{" + e.KeyCode.ToString() + "}" ) ; |
|
|
|
|