How to detect Ctrl+Click in uitable's CellEditCallbackFcn?
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have a uitable in a GUI. One column format is logical, i.e. Matlab displays checkboxes in that column.
I would like to be able to distinguish whether a user clicks or ctrl-clicks (i.e. holds down the CTRL key while clicking) a checkbox while evaluating the uitable's CellEditCallbackFcn.
I could imagine utilizing the uitable's KeyPressFcn for this purpose but I bet there is a more elegant solution, maybe using the uitable's underlying java object? Haven't found anything so far, so any help is appreciated!
Thanks! Stephan.
0 件のコメント
回答 (2 件)
Stan
2013 年 6 月 20 日
As far as I know it is the KeyPress as you mentioned. Never saw an alternative.
0 件のコメント
Stephan Heise
2013 年 6 月 21 日
1 件のコメント
Tom
2013 年 6 月 21 日
編集済み: Tom
2013 年 6 月 21 日
I was playing with this earlier - I couldn't find a way to get around this. The closest I got was using the window button motion function to clear the previous key press info but this wasn't perfect either. Maybe using the listbox option for the table cell would be better?
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!