Skip to content

Calling preventDefault on keypress events suppresses browser clipboard events #1829

@vladbat00

Description

@vladbat00

event.prevent_default();

This particular line of code prevents browsers to send clipboard events if winit's canvas is focused.

That makes it troublesome to add copy/cut/paste events support to UI frameworks.

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