fix: restore mention keyboard shortcuts

This commit is contained in:
codex-bot 2025-10-24 13:12:55 -03:00
parent a319aa0eff
commit 92ac0fafc6

View file

@ -269,12 +269,10 @@ const TicketMentionExtension = Mention.extend({
}
},
addKeyboardShortcuts() {
const mentionPrototype = Mention as unknown as {
prototype: { addKeyboardShortcuts?: (this: unknown) => unknown }
}
const parentShortcuts = mentionPrototype.prototype.addKeyboardShortcuts?.call(this) as
| Record<string, (args: { editor: Editor }) => boolean>
| undefined
// Reuse base Mention keyboard shortcuts when extending the extension.
const parentShortcuts = (this as unknown as {
parent?: () => Record<string, (args: { editor: Editor }) => boolean>
}).parent?.()
const parent = parentShortcuts ?? {}
return {
...parent,