Remove event listener leftover

This commit is contained in:
barsdeveloper
2022-04-18 22:45:41 +02:00
parent 2ebd55b31d
commit be20984b5a
5 changed files with 8 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ export default class Copy extends IInput {
constructor(target, blueprint, options = {}) {
options.listenOnFocus = true
options.unlistenOnTextEdit = true
options.unlistenOnTextEdit = true // No nodes copy if inside a text field, just text (default behavior)
super(target, blueprint, options)
this.serializer = new ObjectSerializer()
let self = this

View File

@@ -11,7 +11,7 @@ export default class Paste extends IInput {
constructor(target, blueprint, options = {}) {
options.listenOnFocus = true
options.unlistenOnTextEdit = true
options.unlistenOnTextEdit = true // No nodes paste if inside a text field, just text (default behavior)
super(target, blueprint, options)
this.serializer = new ObjectSerializer()
let self = this

View File

@@ -14,7 +14,7 @@ export default class IKeyboardShortcut extends IInput {
options.activateAnyKey ??= false
options.activationKeys ??= []
options.listenOnFocus ??= true
options.unlistenOnTextEdit ??= true
options.unlistenOnTextEdit ??= true // No shortcuts when inside of a text field
if (!(options.activationKeys instanceof Array)) {
options.activationKeys = [options.activationKeys]
}