key-pressed

WebJar for key-pressed

License

License

MIT
Categories

Categories

KeY Data Data Formats Formal Verification
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

key-pressed
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

key-pressed
WebJar for key-pressed
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/hughsk/key-pressed

Download key-pressed

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/key-pressed/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>key-pressed</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/key-pressed/
implementation 'org.webjars.npm:key-pressed:0.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/key-pressed/
implementation ("org.webjars.npm:key-pressed:0.0.1")
'org.webjars.npm:key-pressed:jar:0.0.1'
<dependency org="org.webjars.npm" name="key-pressed" rev="0.0.1">
  <artifact name="key-pressed" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='key-pressed', version='0.0.1')
)
libraryDependencies += "org.webjars.npm" % "key-pressed" % "0.0.1"
[org.webjars.npm/key-pressed "0.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : vkey jar 0.0.3

Project Modules

There are no modules declared in this project.

key-pressed experimental

A simple browserify module for telling whether or not a given key has been pressed down.

Usage

NPM

pressed(name)

Given a key's name, check if that key is currently being pressed down and return either true or false accordingly.

For most keyboard characters you can simply pass their uppercase equivalent, and the remaining special characters are listed in vkey.

License

MIT. See LICENSE.md for details.

Versions

Version
0.0.1