How to disable onEsc in child editor?

How to disable onEsc in child editor?

maxmediamaxmedia Posts: 20Questions: 9Answers: 0

Using datatables field type in main editor, I open child editor. When user press Escape, both editors close.
I need to disable Escape in child editor.

I tried opening child editor from datatables field buttons like this:
{ extend: 'create', editor: incRefundsEditor, formOptions: {onEsc: 'none', nest: true} }
but nothing happened, Escape still closes both editors.

When I add onEsc: 'none' to parent editor this way it works as intended. But still opening child editor and pressing Escape closes both editors.

Any ideas?

Answers

  • allanallan Posts: 65,752Questions: 1Answers: 10,937 Site admin

    I'm afraid that sounds like a bug - the event handler isn't accounting for the nesting.

    Let me look into it and I'll let you know in more detail that the issue is when I do so.

    Thanks for flagging this up.

    Allan

Sign In or Register to comment.