diff --git a/polygerrit-ui/app/mixins/keyboard-shortcut-mixin/keyboard-shortcut-mixin.ts b/polygerrit-ui/app/mixins/keyboard-shortcut-mixin/keyboard-shortcut-mixin.ts index 69db96d5a0..ab73b59d75 100644 --- a/polygerrit-ui/app/mixins/keyboard-shortcut-mixin/keyboard-shortcut-mixin.ts +++ b/polygerrit-ui/app/mixins/keyboard-shortcut-mixin/keyboard-shortcut-mixin.ts @@ -800,6 +800,10 @@ const InternalKeyboardShortcutMixin = dedupingMixin( @property({type: Object}) _shortcut_v_table: Map = new Map(); + Shortcut = Shortcut; + + ShortcutSection = ShortcutSection; + modifierPressed(event: CustomKeyboardEvent) { /* We are checking for g/v as modifiers pressed. There are cases such as * pressing v and then /, where we want the handler for / to be triggered. @@ -1049,6 +1053,8 @@ export const KeyboardShortcutMixin = >( /** The interface corresponding to KeyboardShortcutMixin */ export interface KeyboardShortcutMixinInterface { + Shortcut: typeof Shortcut; + ShortcutSection: typeof ShortcutSection; _shortcut_go_key_last_pressed: number | null; _shortcut_v_key_last_pressed: number | null; _shortcut_go_table: Map;