stride3d / stride

Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
https://stride3d.net
MIT License
6.65k stars 957 forks source link

Custom Hot Keys for Edit Text #2515

Open TranquilAbyss opened 2 weeks ago

TranquilAbyss commented 2 weeks ago

Is your feature request related to a problem? Please describe. I was trying to add an event to happen when EditText was selected and pressing the enter key. I would like it for more than just Edit Text since I may come up with other elements to create hotkeys for.

Describe the solution you'd like It would help to expose the existing KeyPressEvents on UI Elements.

Describe alternatives you've considered

  1. Since the Key Press Events are not available I would have to capture a global key press and check every EditText to see which had focus.
  2. Or I would have to create a custom EditText class that provides access to the events.

Additional context I am willing to create the PR myself, If there is any documentation that requires update, for changing an internal to a public class and event, let me know since I am new to how things get updated in this project.