Skip to content

Commit

Permalink
Fix keyboard navigation bug
Browse files Browse the repository at this point in the history
Using the enter key to close the dialog stopped the show password characters button from being activated.
  • Loading branch information
DHancock committed Jun 2, 2020
1 parent 7ea30b7 commit 6f602f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/CharacterChooserForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ private bool LoadCharacterTextBox(int selectedIndex, TextBox textBox)
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if ((keyData == Keys.Escape) ||
(keyData == Keys.Enter) ||
(keyData == (Keys.Control | Keys.W)) ||
(keyData == (Keys.Alt | Keys.F4)))
{
Expand Down Expand Up @@ -372,9 +371,9 @@ private void ToolTip_Popup(object sender, PopupEventArgs e)
/// </summary>
/// <param name="c"></param>
/// <returns>category description</returns>
private string GetUnicodeCategoryDescription(char c)
private static string GetUnicodeCategoryDescription(char c)
{
string s = string.Empty;
string s ;
UnicodeCategory uc = Char.GetUnicodeCategory(c);

switch (uc)
Expand Down Expand Up @@ -409,6 +408,7 @@ private string GetUnicodeCategoryDescription(char c)
case UnicodeCategory.ModifierSymbol: s = Resources.Sk; break;
case UnicodeCategory.OtherSymbol: s = Resources.So; break;
case UnicodeCategory.OtherNotAssigned: s = Resources.Cn; break;
default: s = string.Empty; break;
}

return s;
Expand Down

0 comments on commit 6f602f1

Please sign in to comment.