Skip to content

Improves keyboard event handling experience in hostile browser environment and allows for avoiding onpress events that are cross-browser incompatible and soon to be deprecated

License

Notifications You must be signed in to change notification settings

l15k4/scalajs-keyboard-polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scalajs-keyboard-polyfill

  • Scala.js version : 0.6.31
resolvers in ThisBuild ++= Seq(
  Resolver.bintrayRepo("pragmaxim", "maven")
)
libraryDependencies ++= Seq("com.pragmaxim" %%% "scalajs-keyboard-polyfill" % "0.0.5")

Improves keyboard event handling experience in hostile browser environment

Primarily it allows you to abandon onpress events that have cross-browser incompatible behavior and that are to be deprecated in favor of beforeinput events in W3C DOM4. Calling polyfill method on keydown/keyup PfEvent gives you normalized keyCode across platforms and browsers and estimated charCode in case of a key representing printable character. pfKeyCode and optional pfCharCode properties are added to Event object for possible latter use

NOTE:

it might be eventually merged into scala-js-dom, see my PR

About

Improves keyboard event handling experience in hostile browser environment and allows for avoiding onpress events that are cross-browser incompatible and soon to be deprecated

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages