How to link an App-Designer push button to a keyboard key?

1 回表示 (過去 30 日間)
Leon
Leon 2019 年 9 月 16 日
コメント済み: Leon 2019 年 9 月 17 日
I create two push buttons for my program, PREVIOUS and NEXT, how do I linke them to the Left and right Arrow key on my keyboard?

回答 (1 件)

Nicolas B.
Nicolas B. 2019 年 9 月 17 日
Hey,
you can implement the callback UIFigureKeyRelease on your UIFigure object. Then, you juste have to implement the code to get left or right.
Regards
  1 件のコメント
Leon
Leon 2019 年 9 月 17 日
Many thanks for the hint, Nicolas!
Do you have an example code for this purposes?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by