Skip to content

GLFW key listener blocking backspace and tab #6143

@ghost

Description

https://github.com/kripken/emscripten/blob/incoming/src/library_glfw.js#L400

Why is it necessary to call event.preventDefault() when the key is backspace or tab here? This blocks backspace and tab on the entire page, making text inputs on the page completely unusable.

I'm not sure I understand the purpose of this anyways. Is it to prevent the user from exiting the page when they hit backspace? If so, maybe this should only be checked if the pointer is locked or fullscreen is enabled.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions