mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
feat: shortcuts support override pre handlers like delete (#93)
This commit is contained in:
parent
a039913a60
commit
62e53350f1
@ -43,7 +43,8 @@ export class ShortcutsRegistry {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.shortcutsHandlers.push(...handlers);
|
// Insert before for override pre handlers
|
||||||
|
this.shortcutsHandlers.unshift(...handlers);
|
||||||
}
|
}
|
||||||
|
|
||||||
addHandlersIfNotFound(...handlers: ShortcutsHandler[]): void {
|
addHandlersIfNotFound(...handlers: ShortcutsHandler[]): void {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user