Jump to content
uniGUI Discussion Forums
Sign in to follow this  
vbdavie

TuniEdit - Backspace makes no event

Recommended Posts

I have a TuniEdit with an OnKeyPress event. It seems to work fine and get all the chars I'm interested in including the CR<#13>.

 

HOWEVER, it appears that the BACKSPACE<#08> character is totally ignored. So, basically, my event never gets called when the user is using the backspace to ALTER the contents of the field.

 

Luckily, the onChange event DOES happen as I change the edit field with the backspace key. Very wierd the that OnChange recognizes the keypress, but the OnKeyPress does NOT.

 

Am I missing something?

 

Davie

Share this post


Link to post
Share on other sites

Hi,

 

You should handle the onKeyDown instead of the onKeyPress event.

 

Best regards.

Share this post


Link to post
Share on other sites

I suppose that makes sense. Is it because the browser won't send it as a normal key press? Just like it doesn't send the CR as a normal keypress?

 

Davie

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×