[platform] provide a way to specify a URL for "Keyboard Shortcuts PDF" action in ExternalProductResourceUrls (IJPL-204)

IntelliJ IDEA has been migrated to use the new property.

GitOrigin-RevId: 1a43dcfa89dfd8e9954bb611790136c224a58bd3
This commit is contained in:
Nikolay Chashnikov
2023-08-22 11:28:35 +02:00
committed by intellij-monorepo-bot
parent 6e8b44548e
commit 9711ba4167
6 changed files with 29 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.idea.customization.base
import com.intellij.openapi.util.SystemInfo
import com.intellij.platform.ide.impl.customization.BaseJetBrainsExternalProductResourceUrls
import com.intellij.platform.ide.impl.customization.ZenDeskFeedbackFormData
import com.intellij.platform.ide.impl.customization.ZenDeskFeedbackFormFieldIds
@@ -41,4 +42,10 @@ class IntelliJIdeaExternalResourceUrls : BaseJetBrainsExternalProductResourceUrl
override val youTubeChannelUrl: Url
get() = Urls.newFromEncoded("https://www.youtube.com/user/intellijideavideo")
override val keyboardShortcutsPdfUrl: Url
get() {
val suffix = if (SystemInfo.isMac) "_Mac" else ""
return Urls.newFromEncoded("https://www.jetbrains.com/idea/docs/IntelliJIDEA_ReferenceCard$suffix.pdf")
}
}