Docs update

This commit is contained in:
Francisco Hodge
2018-10-30 23:33:29 -04:00
parent 288fcf3507
commit e7284b0e38
16 changed files with 136331 additions and 113895 deletions
@@ -53,13 +53,22 @@ class PhysicalKeyboard {
*/
this.simpleKeyboardInstance = simpleKeyboardInstance;
/**
* Bindings
*/
this.initKeyboardListener = this.initKeyboardListener.bind(this);
this.getSimpleKeyboardLayoutKey = this.getSimpleKeyboardLayoutKey.bind(this);
/**
* Initialize key listeners
*/
this.initKeyboardListener();
}
/**
* Initializes key event listeners
*/
initKeyboardListener = () => {
initKeyboardListener(){
// Adding button style on keydown
document.addEventListener("keydown", (event) => {
if(this.simpleKeyboardInstance.options.physicalKeyboardHighlight){
@@ -96,7 +105,7 @@ class PhysicalKeyboard {
* Transforms a KeyboardEvent's "key.code" string into a simple-keyboard layout format
* @param {object} event The KeyboardEvent
*/
getSimpleKeyboardLayoutKey = (event) => {
getSimpleKeyboardLayoutKey(event){
let output;
if(