From: Fabrizio Assabese on
Hi everybody,

i've created an interface in order to develop the interaction of a general user in face of a webcam who has to react to some visual stimulus, pushing some keys on keyboard.
Everytime I press on some keys, I can't keep focusing on my interface but It switch to matlab mainboard. Doas Anyone have suggestions?
From: Jan Simon on
Dear Fabrizio,

> Everytime I press on some keys, I can't keep focusing on my interface but It switch to matlab mainboard. Doas Anyone have suggestions?

If a FIGURE has no KeyPressFcn, each keypress event is forwarded to the command line. The WindowsButtonDownFcn catches clicks with the mouse.

Good luck, Jan