Disabling keyboard output to the Command Window
조회 수: 14 (최근 30일)
이전 댓글 표시
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
채택된 답변
Jan
2011년 4월 11일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!