mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-05-15 04:14:06 +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 */
|
/* istanbul ignore next */
|
||||||
handleSelectionChange(event: KeyboardHandlerEvent): void {
|
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);
|
this.caretEventHandler(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user