Skip to content

Commit

Permalink
Merge pull request #2671 from psyGamer/mac-keymap-convert
Browse files Browse the repository at this point in the history
Mac: Implement Keymap.Convert
  • Loading branch information
cwensley authored Jul 10, 2024
2 parents 0392820 + 05277ae commit 125063e
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 125063e

Please sign in to comment.