picoe / Eto

Cross platform GUI framework for desktop and mobile applications in .NET
Other
3.52k stars 319 forks source link

Use base key for key event in GTK #2668

Closed psyGamer closed 5 days ago

psyGamer commented 1 week ago

GTK seems to already apply modifiers to the sent key. For example, pressing ; will get the semicolon key from GTK. But Shift + ; will get the colon key from GTK, which isn't mapped in Eto. This this, it'll now properly report the key event as Keys.Semicolon in e.Key and Keys.Shift in e.Modifiers.

This should close #2645

cwensley commented 1 week ago

Nice fix! Thanks for the contribution.