mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-01 02:53:07 +08:00
Ignore selectionchange on Firefox. Fixes #1839
This commit is contained in:
parent
de65760cf5
commit
3391cf87ba
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user