Skip to content

Commit

Permalink
Merge pull request #31 from DHancock/current
Browse files Browse the repository at this point in the history
Fix keyboard navigation bug
  • Loading branch information
DHancock authored Jun 2, 2020
2 parents a87accf + 6f602f1 commit 5034002
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 5034002

Please sign in to comment.