Skip to content

Commit

Permalink
Mac: Implement Keymap.Convert
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Jul 7, 2024
1 parent c24702f commit 05277ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eto.Mac/KeyMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ enum KeyCharacters

public static Keys Convert(string keyEquivalent, NSEventModifierMask modifier)
{
return Keys.None;
return InverseMap.FirstOrDefault(pair => pair.Value == keyEquivalent).Key | modifier.ToEto();
}

public static string KeyEquivalent(Keys key)
Expand Down

0 comments on commit 05277ae

Please sign in to comment.