App designer key press function
101 次查看(过去 30 天)
显示 更早的评论
Hi,
I am using App Designer, and I would like to use the key press function, such that pressing the left arrow and right arrow on the keyboard, performs the same functions as clicking the buttons "previous" and "next" respectively. My code, which doesn't work, is as follows:
function UIFigureKeyPress(app, event)
key = event.Key;
switch key
case 'rightarrow'
NextframeButtonPushed(app, event);
case 'leftarrow'
PreviousframeButtonPushed(app, event);
end
end
Was wondering if anybody knows where the problem lies. Thanks in advance for your time.
2 个评论
Ramya Dodla
2020-11-4
Here is the link to a similar post on App designer Key press function. Hope this helps.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!