diff --git a/README.md b/README.md index 9b04f0bc..e623ae6c 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,8 @@ import Keyboard from 'simple-keyboard'; import 'simple-keyboard/build/css/index.css'; let keyboard = new Keyboard({ - onChange: input => this.onChange(input), - onKeyPress: button => this.onKeyPress(button) + onChange: input => onChange(input), + onKeyPress: button => onKeyPress(button) }); function onChange(input){ diff --git a/package.json b/package.json index 638df6ec..7894e207 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-keyboard", - "version": "2.3.21", + "version": "2.3.22", "description": "On-screen Virtual Keyboard", "main": "build/index.js", "scripts": {