Skip to content

Commit

Permalink
Merge pull request #548 from simono74/master
Browse files Browse the repository at this point in the history
Fixes Issue #437 - Open Session dialog does not handle keys correctly
  • Loading branch information
jimradford committed Sep 26, 2015
2 parents 1b5f31c + d930a5b commit d2b1b03
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion SuperPutty/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
<value>CaseSensitive</value>
</setting>
<setting name="QuickSelectorCaseSensitiveSearch" serializeAs="String">
<value>True</value>
<value>False</value>
</setting>
<setting name="ShowDocumentIcons" serializeAs="String">
<value>False</value>
Expand Down
4 changes: 2 additions & 2 deletions SuperPutty/Gui/QuickSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void textBoxData_KeyDown(object sender, KeyEventArgs e)
switch (e.KeyCode)
{
case Keys.Enter:
if (this.DataView.Count == 1)
if (this.DataView.Count > 0)
{
this.DoSelectItem();
}
Expand All @@ -136,7 +136,7 @@ private void textBoxData_KeyDown(object sender, KeyEventArgs e)
{
if (this.dataGridViewData.Rows.Count > 1)
{
this.dataGridViewData.Rows[1].Selected = true;
this.dataGridViewData.CurrentCell = this.dataGridViewData.Rows[1].Cells[0];
}
}
e.Handled = true;
Expand Down
12 changes: 6 additions & 6 deletions SuperPutty/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion SuperPutty/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
<Value Profile="(Default)">CaseSensitive</Value>
</Setting>
<Setting Name="QuickSelectorCaseSensitiveSearch" Provider="SuperPutty.Utils.PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="ShowDocumentIcons" Provider="SuperPutty.Utils.PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
Expand Down

0 comments on commit d2b1b03

Please sign in to comment.