Skip to content

Arrow keys scroll the page with SDL2 #3665

@iboB

Description

@iboB

As specified in the docs the canvas is supposed to take the focus (unless I specify SDL_EMSCRIPTEN_KEYBOARD_ELEMENT). While it does correctly capture backspace for example, the arrow keys are still sent to the browser, which causes scrolling of the page when the intention is to send commands to the js application.

Is there a way to stop sending the arrow key events to the browser?

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