RDCT-1092 Hotkeys are displayed incorrectly in popups on different OS

replace SystemInfo.isMac with ClientSystemInfo.isMac() in keyboard-shortcuts-related code

GitOrigin-RevId: 640604dff8e09d1aeccd0edc156873dd63c09fea
This commit is contained in:
Dmitry Batrak
2024-04-22 19:07:15 +03:00
committed by intellij-monorepo-bot
parent 21bbfdc1d3
commit 881b370b95
59 changed files with 174 additions and 108 deletions

View File

@@ -19,9 +19,9 @@ import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ReadAction;
import com.intellij.openapi.client.ClientSystemInfo;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.util.TextRange;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VfsUtil;
@@ -304,7 +304,8 @@ public class UnusedDeclarationPresentation extends DefaultInspectionToolPresenta
final class CommentOutBin extends QuickFixAction {
CommentOutBin(@NotNull InspectionToolWrapper toolWrapper) {
super(AnalysisBundle.message("inspection.dead.code.comment.quickfix"), null, KeyStroke.getKeyStroke(KeyEvent.VK_SLASH, SystemInfo.isMac ? InputEvent.META_MASK : InputEvent.CTRL_MASK),
super(AnalysisBundle.message("inspection.dead.code.comment.quickfix"), null,
KeyStroke.getKeyStroke(KeyEvent.VK_SLASH, ClientSystemInfo.isMac() ? InputEvent.META_MASK : InputEvent.CTRL_MASK),
toolWrapper);
}