neo icon indicating copy to clipboard operation
neo copied to clipboard

#5102 onRowClick add altKey, ctrlKey, metaKey, shiftKey tests and fires

Open gplanansky opened this issue 1 year ago • 1 comments

What kind of change does this PR introduce? (check at least one)

  • [x] Feature Does this PR introduce a breaking change? (check one)
  • [x] No If adding a new feature, the PR's description includes:
  • [x] per #5102 allows e.g. shift-click to raise a popup dialog to edit row record fields.

gplanansky avatar Dec 01 '23 14:12 gplanansky

The code is now modified to handles both type "click" and type "dblclick"

  • handling dblclick is optional, controlled by the config parameter: "dblclickEnable" . The default value of false preserves old behavior.
  • all clicks fire "rowclick"
  • pure click also does row highligting and fires "select" or "deselect", identical to the old behavior
  • distinguishing clicks from a dblclick is via a setTimeout that waits "dblclickDelay" ms to test if dblclick has been detected. The configurable dblclickDelay is 510. A better way would be welcome.

gplanansky avatar Dec 03 '23 21:12 gplanansky