io.scalajs.dom.event.KeyboardEvents.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dom-html_sjs0.6_2.11 Show documentation
Show all versions of dom-html_sjs0.6_2.11 Show documentation
DOM/HTML bindings for Scala.js
package io.scalajs.dom.event
import scala.scalajs.js
/**
* Keyboard Events
* @author [email protected]
*/
@js.native
trait KeyboardEvents extends js.Object {
/**
* The event occurs when the user is pressing a key
*/
def onkeydown(callback: js.Function): Unit = js.native
/**
* The event occurs when the user presses a key
*/
def onkeypress(callback: js.Function): Unit = js.native
/**
* The event occurs when the user releases a key
*/
def onkeyup(callback: js.Function): Unit = js.native
}