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

2 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Nicolas B.
Nicolas B. il 17 Set 2019
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 Commento
Leon
Leon il 17 Set 2019
Many thanks for the hint, Nicolas!
Do you have an example code for this purposes?

Accedi per commentare.

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by