Skip to content

Keypress event handlers shouldn't be anonymous #2106

Open
@dylanh724

Description

@dylanh724

Hi,

Please properly identify the keypress event handlers (currently anonymous) so we can remove them if we want. Eg, an actual handler func called on keydown. Eg:

function pyDataCtrlKHandler(e) {
    // Original listener logic here
}
window.addEventListener("keydown", pyDataCtrlKHandler, true);

Real example use: We added Algolia DocSearch that replaced the search and uses the same hotkeys (eg, CTRL+K).

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions