mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-21 00:23:02 +08:00
Adding selectionchange handler. Fixes https://github.com/hodgef/react-simple-keyboard/issues/1140
This commit is contained in:
parent
6d217bdc27
commit
a89789df25
@ -1008,6 +1008,7 @@ class SimpleKeyboard {
|
||||
document.addEventListener("mouseup", this.handleMouseUp);
|
||||
document.addEventListener("touchend", this.handleTouchEnd);
|
||||
document.addEventListener("select", this.handleSelect);
|
||||
document.addEventListener("selectionchange", this.handleSelect);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1135,6 +1136,7 @@ class SimpleKeyboard {
|
||||
document.removeEventListener("mouseup", this.handleMouseUp);
|
||||
document.removeEventListener("touchend", this.handleTouchEnd);
|
||||
document.removeEventListener("select", this.handleSelect);
|
||||
document.removeEventListener("selectionchange", this.handleSelect);
|
||||
document.onpointerup = null;
|
||||
document.ontouchend = null;
|
||||
document.ontouchcancel = null;
|
||||
|
Loading…
Reference in New Issue
Block a user