How to add a keyboard shortcut for a custom action in a custom Simulink toolstrip?

6 ビュー (過去 30 日間)
Ferry
Ferry 2023 年 10 月 11 日
回答済み: Govind KM 2024 年 8 月 20 日
Hi Matlab and Simulink guys,
I have created a custom Simulink toolstrip tab via slCreateToolstripComponent and slCreateToolstripTab. I have added custom actions to the tab and these actions call own Matlab scripts.
Is it possible to define keyboard shortcuts for these actions (similar to what is possible via 'schema.accelerator' in sl_customization.m)? If there is no documented way, then maybe an undocumented way?
Would appreciate any help and thanks in advance ...

回答 (1 件)

Govind KM
Govind KM 2024 年 8 月 20 日
Hi Ferry,
This is a known issue with custom toolstrips. If keyboard shortcuts are necessary for your workflow, the best approach would be to continue using custom menus by defining a “sl_customization.m” file. To do so, you can refer to the following links:
Hope this is useful.

カテゴリ

Help Center および File ExchangeDesktop についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by