Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

The oncopy, oncut, onpaste events don't occur #125

@PavelSha

Description

@PavelSha

Hello.
I used the simple example: http://main.lv/writeup/web_assembly_sdl_example.md
Also, I added in index.html:

<html>
  ...
    <body>
      ...
      <script type='text/javascript'>
        document.addEventListener('keydown', function (e) {
          console.log(" ! keydown !");
        }, true);
        document.addEventListener('cut', function (e) {
          console.log(" ! cut !");
        }, true);
        document.addEventListener('copy', function (e) {
          console.log(" ! copy !");
        }, true);
        document.addEventListener('paste', function (e) {
          console.log(" ! paste !");
        }, true);
      </script>
    </body>
</html>

I used - "Press CTRL + X", "Press CTRL + C", "Press CTRL + V"
The event 'keydown' occurs. But the events 'copy', 'cut', 'paste' events don't occur.
I canceled this changes: 993758c. That helped me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions