Skip to content

Version 2.2.0 (Stable)

Compare
Choose a tag to compare
@hodgef hodgef released this 07 Feb 05:04
· 6837 commits to master since this release

Release 2.2.0 upgrades react-simple-keyboard to simple-keyboard 2.28.0.

To learn more about the changes included, check out the release details for simple-keyboard@2.28.0

Changelog

  • Added ability to pass an HTMLDivElement instead of a class string as keyboard target. (#416)
const elem = document.createElement("div");
elem.className = "my-keyboard"; // div *must* have a class

this.keyboard = new Keyboard(elem, {
 // options
});

document.body.appendChild(elem);

(See full demo)

  • Moved theme styles to hg-theme-default, fixing some styling issues that appeared when the class .simple-keyboard was not used.
  • Internal: Codebase cleanup.

💥 Breaking Changes

The following changes affect library internals and require no action from most users :

  • Removed internal variable keyboardDOMQuery.

Got any improvements to suggest? Please feel free to open an issue or reach out on the community chat:
http://franciscohodge.com/simple-keyboard/chat/join

Or even better, submit a PR :)
https://github.com/hodgef/react-simple-keyboard/pulls