Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple tables with Enter & ESC Keys #73

Open
milacay opened this issue May 16, 2019 · 2 comments
Open

Multiple tables with Enter & ESC Keys #73

milacay opened this issue May 16, 2019 · 2 comments

Comments

@milacay
Copy link

milacay commented May 16, 2019

Thank you very much for the great plug-in.

I was running into the problem with multiple tables on the same page, then I found your post (this) with newer methods and it seemed to work for multiple tables. Thanks again for that.

How do I incorporate the ENTER or ESC keys, which trigger submitting new value (Enter) or put back old value (ESC)?

Please help, much appreciated.

@BushrHaddad
Copy link

In getInputHtml method in dataTables.cellEdit.js
Change
var inputSetting, inputType, input, inputCss, confirmCss, cancelCss, startWrapperHtml = '', endWrapperHtml = '', listenToKeys = false;
to
var inputSetting, inputType, input, inputCss, confirmCss, cancelCss, startWrapperHtml = '', endWrapperHtml = '', listenToKeys = true;

@milacay
Copy link
Author

milacay commented May 11, 2021

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants