Skip to content

ReferenceError: KeyboardEvent is not defined #137

Description

@Wyrdix

When using the editor on a default sveltekit project, when page is loaded it throws a
ReferenceError: KeyboardEvent is not defined
at ./node_modules/typewriter-editor/dist/modules/shortcutFromEvent.js:9:36

<script lang="ts">
  import { Editor } from "typewriter-editor";

  const editor = new Editor();
</script>

{@html editor.root}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions