Options
updateCaretOnSelectionChange
Updates caret when selectionchange event is fired. This allows simple-keyboard to track the caret position when users select text in the input field using their mouse or keyboard.
let keyboard = new SimpleKeyboard({
updateCaretOnSelectionChange: true
});
// Now when users click or drag to select text in the input,
// simple-keyboard will automatically update its internal caret position
// This ensures typed characters appear at the correct location