mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 06:05:45 +08:00
Remove event listener leftover
This commit is contained in:
8
dist/ueblueprint.js
vendored
8
dist/ueblueprint.js
vendored
@@ -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`
|
||||
<div class="ueb-pin-input">
|
||||
<div class="ueb-pin-input-content" role="textbox" contenteditable="true" onfocusout="e => document.getSelection().removeAllRanges()"></div>
|
||||
<div class="ueb-pin-input-content" role="textbox" contenteditable="true"></div>
|
||||
</div>
|
||||
`
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export default class StringPinTemplate extends PinTemplate {
|
||||
renderInput(pin) {
|
||||
return html`
|
||||
<div class="ueb-pin-input">
|
||||
<div class="ueb-pin-input-content" role="textbox" contenteditable="true" onfocusout="e => document.getSelection().removeAllRanges()"></div>
|
||||
<div class="ueb-pin-input-content" role="textbox" contenteditable="true"></div>
|
||||
</div>
|
||||
`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user