Disabling keyboard output to the Command Window
13 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
Jan
on 11 Apr 2011
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
More Answers (0)
See Also
Categories
Find more on Data Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!