3
0
mirror of https://github.com/hodgef/simple-keyboard.git synced 2025-03-03 16:02:56 +08:00

Ignore selectionchange on Firefox. Fixes

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);
}