From be20984b5ad5971c966686d4bea08275fb0a07ba Mon Sep 17 00:00:00 2001 From: barsdeveloper Date: Mon, 18 Apr 2022 22:45:41 +0200 Subject: [PATCH] Remove event listener leftover --- dist/ueblueprint.js | 8 ++++---- js/input/common/Copy.js | 2 +- js/input/common/Paste.js | 2 +- js/input/keybaord/IKeyboardShortcut.js | 2 +- js/template/StringPinTemplate.js | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/ueblueprint.js b/dist/ueblueprint.js index 82080a0..fb5b97c 100755 --- a/dist/ueblueprint.js +++ b/dist/ueblueprint.js @@ -1319,7 +1319,7 @@ 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; @@ -1411,7 +1411,7 @@ 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]; } @@ -2867,7 +2867,7 @@ class StringPinTemplate extends PinTemplate { renderInput(pin) { return html`
-
+
` } @@ -3351,7 +3351,7 @@ 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; diff --git a/js/input/common/Copy.js b/js/input/common/Copy.js index 3aa61dc..7944262 100755 --- a/js/input/common/Copy.js +++ b/js/input/common/Copy.js @@ -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 diff --git a/js/input/common/Paste.js b/js/input/common/Paste.js index 02f8f51..454c272 100755 --- a/js/input/common/Paste.js +++ b/js/input/common/Paste.js @@ -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 diff --git a/js/input/keybaord/IKeyboardShortcut.js b/js/input/keybaord/IKeyboardShortcut.js index 450c5d2..4727418 100644 --- a/js/input/keybaord/IKeyboardShortcut.js +++ b/js/input/keybaord/IKeyboardShortcut.js @@ -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] } diff --git a/js/template/StringPinTemplate.js b/js/template/StringPinTemplate.js index fbcaf89..cb74f0f 100644 --- a/js/template/StringPinTemplate.js +++ b/js/template/StringPinTemplate.js @@ -23,7 +23,7 @@ export default class StringPinTemplate extends PinTemplate { renderInput(pin) { return html`
-
+
` }