mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-05-19 00:00:07 +08:00
Update input selection after button click. Per #1868
This commit is contained in:
@@ -580,6 +580,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);
|
||||
|
||||
Reference in New Issue
Block a user