row-reorder event ctrlKey

row-reorder event ctrlKey

gSibingergSibinger Posts: 10Questions: 4Answers: 0

I am using the row-reorder event for some custom reordering. For a special case I need to check if the ctrl key is being pressed while the row is dropped. Logging the event, there is a ctrlKey property. However, this property always returns as 'undefined'.
On regular jQuery events like mouseup, the actual value is being caught.
Is this property not checked in the row-reorder event?
How would I be able to get its value?

Regards,

Georg

Replies

  • allanallan Posts: 61,667Questions: 1Answers: 10,096 Site admin

    Hi Georg,

    RowReorder uses a synthetic event rather than passing through the original event.

    That said, it would be possible to change that adding the original event (e) to the array of arguments.

    I've gone ahead and added that in now. The nightly build will carry that change shortly.

    Regards,
    Allan

  • gSibingergSibinger Posts: 10Questions: 4Answers: 0

    Hi Allan,

    thank you very much for the quick fix! Works like a charm.

    Regards,
    Georg

This discussion has been closed.