mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-20 01:22:59 +08:00
Specifying layout class on keyboard element
This commit is contained in:
parent
d382945de7
commit
a5c177e41c
@ -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
@ -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",
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user