mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 09:44:49 +08:00
Ability to cancel nodes implemented
This commit is contained in:
@@ -2,7 +2,7 @@ import Context from "./Context"
|
||||
|
||||
export default class KeyboardShortcut extends Context {
|
||||
|
||||
constructor(target, blueprint, options) {
|
||||
constructor(target, blueprint, options = {}) {
|
||||
options.wantsFocusCallback = true
|
||||
super(target, blueprint, options)
|
||||
|
||||
@@ -15,7 +15,6 @@ export default class KeyboardShortcut extends Context {
|
||||
|
||||
let self = this
|
||||
this.keyDownHandler = e => {
|
||||
e.preventDefault()
|
||||
if (
|
||||
e.code == self.key
|
||||
&& e.ctrlKey === self.ctrlKey
|
||||
|
||||
Reference in New Issue
Block a user