Skip to content

How to remove a event listener for a particular key #23

@Easy-Cloud-in

Description

@Easy-Cloud-in

Is there a way to remove the event listener for a particular key after it is set for listening to a certain function?

Example:
this.HI.on('tab', function (e) {
if (!CheckTabKey1(e, 'form-content')) {
e.preventDefault();
}

in some other place, I want to reset it and make it look work for another function.

this.HI.on('tab', function (e) {
if (!CheckTabKey2(e, 'contact-form')) {
e.preventDefault();
}

please someone help.

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