Double click opens inline editor - is this new?

Double click opens inline editor - is this new?

jladburyjladbury Posts: 43Questions: 12Answers: 0

I have been experimenting with inline editing. In the process I noticed that even when I have not added the relevant click handler, double-clicking a cell opens the inline editor.
This was not the case before I started experimenting, nor does it happen on any of the samples on this site.
It is a feature I would like to keep, so would like to understand where the dblclick handler first made its appearance.
I suspect it might have been introduced in Editor 2.4.1, to which I recently upgraded. (The samples are still using 2.4.0 according to the debugger). Am I right?

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 64,223Questions: 1Answers: 10,598 Site admin
    Answer ✓

    Sounds like you might have keys enabled on the table? Certainly, Editor core doesn't do that. Have you updated KeyTable recently?

    Allan

  • allanallan Posts: 64,223Questions: 1Answers: 10,598 Site admin
    Answer ✓

    Here is an example that acts as you describe.

  • jladburyjladbury Posts: 43Questions: 12Answers: 0

    Hi Allan,
    Speedy as usual - thanks!
    Yes, I have also introduced the keyTable extension like this:

                keys: {
                    keys: ['\t'.charCodeAt(0)],
                    columns: ':not(:first-child)',
                    editor: editor
                },
    
  • allanallan Posts: 64,223Questions: 1Answers: 10,598 Site admin

    Slightly surprisingly, KeyTable doesn't have an option to disable that double click behaviour. I'll need to take a look at adding that in sometime.

    Allan

Sign In or Register to comment.