Ignore selectionchange on Firefox. Fixes #1839

This commit is contained in:
Francisco Hodge 2023-01-15 16:40:32 -05:00
parent de65760cf5
commit 3391cf87ba

View File

@ -1153,6 +1153,13 @@ class SimpleKeyboard {
*/
/* istanbul ignore next */
handleSelectionChange(event: KeyboardHandlerEvent): void {
/**
* Firefox is not reporting the correct caret position through this event
* https://github.com/hodgef/simple-keyboard/issues/1839
*/
if(navigator.userAgent.includes('Firefox')){
return;
}
this.caretEventHandler(event);
}