1.1k views
in GUI Development by
Hello,

In my application, I have to use the alphaNumericKeyboard. I have added the keyboard, KeyHandler and KeyPressHandlerSlot. These works perfect when i run it with the start prototyper, but when i run with start prototyper with application class the keyboard handler and the slot does not work.

Is there any idea why?

1 Answer

0 votes
by
 
Best answer

Hello,

if I understand you correctly, you have a component which contains a KeyHandler and a slot method receiving the key events. When you type some numeric keys on the PC keyboard, the slot method receives the events. But this only works, when you are prototyping the component - but not when you are prototyping the entire application.

I think this because of the missing focus. When you prototype the component separately, the component is focused. If you prototype the entire application, it seems that the component is not along the focus path. Can you check that?

For more information, please have a look to 'Keyboard events and focus path'.

Best regards,

Manfred

by
yes you understand correctly but not with the actual keyboard, the keyboard i am using is virtual. I am going to check the focus path, thank you.
by
The virtual keyboard forwards the key press events to the application as if the user had pressed the key on a real keyboard.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...