mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-22 01:29:39 +08:00
Clearing out uneeded code
This commit is contained in:
parent
cbfba64447
commit
24de8bcb20
@ -57,7 +57,7 @@ class SimpleKeyboard {
|
|||||||
|
|
||||||
handleButtonClicked = (button) => {
|
handleButtonClicked = (button) => {
|
||||||
let debug = this.options.debug;
|
let debug = this.options.debug;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ignoring placeholder buttons
|
* Ignoring placeholder buttons
|
||||||
*/
|
*/
|
||||||
@ -69,13 +69,6 @@ class SimpleKeyboard {
|
|||||||
*/
|
*/
|
||||||
if(typeof this.options.onKeyPress === "function")
|
if(typeof this.options.onKeyPress === "function")
|
||||||
this.options.onKeyPress(button);
|
this.options.onKeyPress(button);
|
||||||
|
|
||||||
/**
|
|
||||||
* Updating input
|
|
||||||
*/
|
|
||||||
let options = {
|
|
||||||
newLineOnEnter: (this.options.newLineOnEnter === true)
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!this.input[this.options.inputName])
|
if(!this.input[this.options.inputName])
|
||||||
this.input[this.options.inputName] = '';
|
this.input[this.options.inputName] = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user