MATLAB: Disabling keyboard output to the Command Window

autorepeatcommand windowdisablekeyboard

Hello all,
I am currently using catching keyboard input (using ginput) in a GUI to control figure properties, e.g., zoom, scroll, colouring, area selection. However, when I hold down a key for a while, the autorepeat causes the GUI figure to lose focus and the key letter to be displayed at the Command Window.
How do I disable (and re-enable) keyboard output to the Command Window?
Many thanks in advance,
James

Best Answer

How do you use GINPUT to control zoom etc? I think the KeyPressFcn or the WindowKeyPressFcn to be more useful - and they catch keystrokes before they are forwarded to the command line. See:
docsearch KeyPressFcn