diff --git a/assets/javascripts/discourse/components/ai-helper-options-list.gjs b/assets/javascripts/discourse/components/ai-helper-options-list.gjs index 7e2e2782..30bd10c0 100644 --- a/assets/javascripts/discourse/components/ai-helper-options-list.gjs +++ b/assets/javascripts/discourse/components/ai-helper-options-list.gjs @@ -3,6 +3,8 @@ import { fn } from "@ember/helper"; import { service } from "@ember/service"; import { and } from "truth-helpers"; import DButton from "discourse/components/d-button"; +import { PLATFORM_KEY_MODIFIER } from "discourse/lib/keyboard-shortcuts"; +import { translateModKey } from "discourse/lib/utilities"; import eq from "truth-helpers/helpers/eq"; import AiHelperCustomPrompt from "../components/ai-helper-custom-prompt"; @@ -13,6 +15,10 @@ export default class AiHelperOptionsList extends Component { return this.site.desktopView && this.args.shortcutVisible; } + get shortcut() { + return translateModKey(`${PLATFORM_KEY_MODIFIER}+alt+p`); + } +