KeyDown, KeyUp, KeyPress Events does not work

0
0

Hi,

i have set KeyPreview = True in my Page Class but the KeyDown, KeyUp, KeyPress Events does not work.

Best regards

  • You must to post comments
0
0

Hi Bitpainter,

did you subscribe to the KeyDown/KeyUp/KeyPress Events ?

Keyboard Events are what we call “lazy Events”. They are fired only when attached (see https://wisej.com/docs/html/Events.htm)

KeyPreview lets a Container (like the page) process any child´s key Event, but if the child is not subscribed, the Event is never
wired back to the server. This is to avoid a larger amout of Keyboard Events that would fire when typing.

Depending on your needs you might also want to take a look at using accelerators.

Hope that helps.

Best regards
Frank

 

 

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.