mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-01 02:53:07 +08:00
Update input selection after button click. Per #1868
This commit is contained in:
parent
2688075807
commit
803a324d9c
@ -581,6 +581,10 @@ class SimpleKeyboard {
|
||||
if(this.caretPositionEnd && this.caretPosition !== this.caretPositionEnd){
|
||||
this.setCaretPosition(this.caretPositionEnd, this.caretPositionEnd);
|
||||
|
||||
if(this.activeInputElement){
|
||||
this.activeInputElement.setSelectionRange(this.caretPositionEnd, this.caretPositionEnd);
|
||||
}
|
||||
|
||||
if(this.options.debug){
|
||||
console.log("Caret position aligned", this.caretPosition);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user