Skip to content

How to use in CDN mode ? #150

@paladio

Description

@paladio

Hi Dear Friends, How to use in CDN mode?

<script src="https://unpkg.com/tinykeys@1.4.0/dist/tinykeys.umd.js"></script>

I have attached the file to the html document but I do not know what script to use, what to change this script?

tinykeys(window, {
"Shift+D": () => {
alert("The 'Shift' and 'd' keys were pressed at the same time")
},
"y e e t": () => {
alert("The keys 'y', 'e', 'e', and 't' were pressed in order")
},
"$mod+KeyD": event => {
event.preventDefault()
alert("Either 'Control+d' or 'Meta+d' were pressed")
},
})

Please provide a complete description and example of how to use in CDN mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions