-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use in CDN mode ? #150
Comments
I think for some reason the compilation is screwed up and its putting everything on: window.tinykeys.default(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")
},
}) |
Any progress on this issue? |
+1 Not exactly sure what to do? |
@san425 try this
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Dear Friends, How to use in CDN mode?
<script src="https://unpkg.com/[email protected]/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.
The text was updated successfully, but these errors were encountered: