mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-01 02:53:07 +08:00
Adding disableCaretPositioning option
This commit is contained in:
parent
701db33ab1
commit
9abb36172d
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
*
|
*
|
||||||
* simple-keyboard v2.7.7
|
* simple-keyboard v2.7.9
|
||||||
* 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
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "simple-keyboard",
|
"name": "simple-keyboard",
|
||||||
"version": "2.7.8",
|
"version": "2.7.9",
|
||||||
"description": "On-screen Javascript Virtual Keyboard",
|
"description": "On-screen Javascript Virtual Keyboard",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -516,8 +516,9 @@ class SimpleKeyboard {
|
|||||||
let targetTagName = event.target.tagName.toLowerCase();
|
let targetTagName = event.target.tagName.toLowerCase();
|
||||||
|
|
||||||
if(
|
if(
|
||||||
targetTagName === "textarea" ||
|
(targetTagName === "textarea" ||
|
||||||
targetTagName === "input"
|
targetTagName === "input") &&
|
||||||
|
!this.options.disableCaretPositioning
|
||||||
){
|
){
|
||||||
/**
|
/**
|
||||||
* Tracks current cursor position
|
* Tracks current cursor position
|
||||||
|
Loading…
Reference in New Issue
Block a user