필터 지우기
필터 지우기

Appdesigner drop down (popupmenu) keyboard navigation

조회 수: 3 (최근 30일)
Jonathan Avesar
Jonathan Avesar 2020년 6월 15일
댓글: Jonathan Avesar 2020년 10월 9일
Hello,
I just migrated my GUIDE app to AppDesigner and one of the features that I really liked in GUIDE is the ability to navigate through drop down menus (popupmenu) using the keyboard. Meaning, I can push a letter on the keyboard to select the option where the first character matches that letter.
Is this possible on the drop down menus in AppDesigner?
In principle I don't need the UI element to be a drop down menu, I just need something that accepts keyboard input but not a "free form" answer. So the keyboard can be used to narrow down a set of predetermined options.
Much appreciated,

답변 (1개)

Monika Phadnis
Monika Phadnis 2020년 10월 9일
'uidropdown' component supports this workflow as well.
If you set the 'Editable' property to 'on', users can enter text in dropdown to narrow down available values.
In case you want to add further restrictions or define behaviors when dropdown value is changed, you can do so in the 'ValueChangedFcn' callback function.
Hope this helps!
  댓글 수: 1
Jonathan Avesar
Jonathan Avesar 2020년 10월 9일
Thank you so much Monika. I am aware of this feature but it isn't exactly the same as in the GUIDE app. If there is one entry that starts with 'a' for example, It doesn't allow us to solely press 'a, tab' and move onto the next group.
Our app had many of these drop downs in series of the tab order and it would be convenient to press 'a, tab, g, tab, etc...'. But no worries, I realized that this form of data input was innefficient anyway and instead redesigned the GUI to utilize an editable table instead.
Thanks!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by