필터 지우기
필터 지우기

HOW TO GET KEY PRESS INSTANCE

조회 수: 2 (최근 30일)
Deepak siddappa gopalappa
Deepak siddappa gopalappa 2015년 8월 18일
답변: Walter Roberson 2015년 8월 18일
I AM ZOOMING THE PLOT, AT THE SAME INSTANCE I WANT TO KNOW THE KEY PRESSED BY KEY BOARD I AM USING set(FIG,'WindowKeyPress',@EscKeyPressFun); ITS CRASH THE TOOL IS THERE ANY OTHER METHOD TO GET THAT ISNSTANCE
THANK YOU DEEPAK

답변 (2개)

blaat
blaat 2015년 8월 18일
The key last pressed in the figure is given by its CurrentCharacter property, which can be obtain by:
key = get(h_fig, 'CurrentCharacter');
where h_fig is a handle to your figure.
Is this of any help? Otherwise I suppose we need some more information.

Walter Roberson
Walter Roberson 2015년 8월 18일
When you turn on zoom mode, it overrides the figure WindowKeyPressFcn . In versions before R2014b it was possible to trick MATLAB to be able to have a WindowKeyPressFcn callback active at the same time as you were in zoom mode, but I am told that as of R2014b that method does not work.

카테고리

Help CenterFile Exchange에서 Argument Definitions에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by