Specifying layout class on keyboard element

This commit is contained in:
Francisco Hodge 2018-12-24 13:30:52 -05:00
parent d382945de7
commit a5c177e41c
6 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
/*! /*!
* *
* simple-keyboard v2.12.1 * simple-keyboard v2.13.0
* https://github.com/hodgef/simple-keyboard * https://github.com/hodgef/simple-keyboard
* *
* Copyright (c) Francisco Hodge (https://github.com/hodgef) * Copyright (c) Francisco Hodge (https://github.com/hodgef)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "simple-keyboard", "name": "simple-keyboard",
"version": "2.12.1", "version": "2.13.0",
"description": "On-screen Javascript Virtual Keyboard", "description": "On-screen Javascript Virtual Keyboard",
"main": "build/index.js", "main": "build/index.js",
"types": "build/index.d.ts", "types": "build/index.d.ts",

View File

@ -655,7 +655,7 @@ class SimpleKeyboard {
*/ */
this.clear(); this.clear();
let layoutClass = this.options.layout ? "hg-layout-custom" : `hg-layout-${this.options.layoutName}`; let layoutClass = `hg-layout-${this.options.layoutName}`;
let layout = this.options.layout || KeyboardLayout.getDefaultLayout(); let layout = this.options.layout || KeyboardLayout.getDefaultLayout();
let useTouchEvents = this.options.useTouchEvents || false let useTouchEvents = this.options.useTouchEvents || false