Allow unlisten events in case of text edit

This commit is contained in:
barsdeveloper
2022-04-02 13:47:16 +02:00
parent e901932953
commit 6ffdcbccab
11 changed files with 1380 additions and 1403 deletions

View File

@@ -5,10 +5,12 @@ import ObjectSerializer from "../../serialization/ObjectSerializer"
export default class Copy extends IContext {
/** @type {(e: ClipboardEvent) => void} */
#copyHandler
constructor(target, blueprint, options = {}) {
options.listenOnFocus = true
options.unlistenOnTextEdit = true
super(target, blueprint, options)
this.serializer = new ObjectSerializer()
let self = this