Skip to main content
GMeur
Associate III
May 23, 2025
Question

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

  • May 23, 2025
  • 2 replies
  • 354 views

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.

2 replies

GGODA
Associate II
May 23, 2025

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,

ST Employee
May 26, 2025

Hello @GMeur,

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

BR,

Louis BOUDOST Software Engineer | TouchGFX
GMeur
GMeurAuthor
Associate III
May 26, 2025

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.