Avalonia.FuncUI icon indicating copy to clipboard operation
Avalonia.FuncUI copied to clipboard

Can Canvas receive onKeyDown or onTextInput?

Open nick-gravgaard opened this issue 2 years ago • 1 comments

I'm trying to write a program which shows different bits of text at various coordinates in the window depending on what the user types into it. In some ways what I want to make is similar to a game - I need to draw things on the screen and receive keyboard events (and eventually mouse ones too). I've attempted to do this by making a Canvas with functions defined for onKeyDown/onTextInput, but they don't seem to get run. Am I doing anything wrong? Is there another way of doing this? Thanks.

nick-gravgaard avatar Apr 02 '22 23:04 nick-gravgaard

have you found suitable solution?

FoggyFinder avatar Jun 25 '22 12:06 FoggyFinder

Closing this issue as it seems to be abandoned. Feel free to reopen if needed.

JordanMarr avatar Jan 22 '23 16:01 JordanMarr