I have a treeview with Checkboxes. For this example, consider we have root nodes only. The user can select multiple checkboxes at once (matching a certain criteria which doesn't matter for this StackOverflow question) using a menu or toolbar.
However, I'd like to provide a shortcut for professional users:
If the user Ctrl-Clicks or Shift-Clicks one item in the tree view, other items matching the same criteria shall also be selected.
I have already tried the following events:
- AfterCheck
- BeforeCheck
- Click
None of the events has event arguments providing information about the mouse button or any modifier keys. Even
- MouseUp
- MouseDown
- NodeMouseClick
only provide information about the mouse button, but not modifier keys.
How to identify modifier keys during mouse clicks on a treeview checkbox?