Skip to content

How to confirm entry with Enter key ? #1

Description

@CharlieEtienne

I would like users to be able to confirm when they press 'Enter' key.

I'm stuck here:

window.addEventListener('static_edit.editing', function (e) {
    document.addEventListener('keydown', function (e) {
        if (e.key == 'Enter') {
            // What could i write here ?
        }
     });
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions