Skip to content

termi/DOM-Keyboard-Event-Level-3-polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOM Keyboard Event Level 3 polyfill

Implementation of DOM 3 Keyboard Events

Important note:

Current version conflicted with the latest w3c spec. New version will coming as soon as I get free time

Status

Beta 3

Demo

demo 1

demo 2

Example

document.addEventListener("keydown", function(e){ console.log(e.type, e.key, e.char, e.shiftKey) })
document.dispatchEvent(new KeyboardEvent("keydown", { key: "1", char: "!", shiftKey: true }))

Goal

TODO

  • more readme
  • tests
  • examples
  • fixing more Opera 12- keyboard event bugs

Tested browsers

  • IE9
  • Opera 12
  • Safari 5.1
  • Chrome 18
  • FireFox 11

Other browsers

  • Theoretically polyfill would work in any browser with addEventListener support
  • You can bring IE6-8 support with DOM and ES5 shim (need tests)

License

MIT

About

DOM Keyboard Event Level 3 polyfill

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published