cancel
Showing results for 
Search instead for 
Did you mean: 

handleKeyEvent(uint8_t) doesn't work with backspace or enter

GMeur
Senior II

Hi,

Why isn't handleKeyEvent() called in touchghx simulator when I press the backspace or the enter keys of my keyboard?

Also, it's a bit sad that it only works with ascii char, so I just can't send a 'é' or a 'è' char for instance… Could it be improved in the next version of touchgfx plz?

Thanks in advance.

3 REPLIES 3
GGODA
Associate III

Hello @GMeur ,

 

What have you done to make the handleKeyEvent() work?
Did you create interactions?

Can you share your project?

here is an exemple of key press implementation on a TouchGFX projetc.

 

Regards,

GMeur
Senior II

You don't need to do much, just override the handleKeyEvent() in one of your views and that's it…

But as I said, it works with all key inputs besides backspace and enter which I'd like to have.

Hello @GMeur,

Thanks for your suggestion, currently we are not planning to support them but this will be discussed with the team.

BR,

Louis BOUDO
ST Software Developer | TouchGFX