mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-13 06:57:28 +08:00
Remove event listener leftover
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user