in idea-plugin/src/main/java/com/jetbrains/ide/streamdeck/keymap/KeymapPanel.java [701:722]
public void actionPerformed(@NotNull AnActionEvent e) {
Keymap selectedKeymap = myManager.getSelectedKeymap();
if (selectedKeymap == null) return;
String actionId = getSelectedActionId();
if (StringUtil.isNotEmpty(actionId)) {
AnAction action = ActionManager.getInstance().getAction(actionId);
if (action != null) {
/*
| ID | Action | Class | Shortcut |
|----|-------|------|------|
| A | B | C | D |
*/
String text = " | " + actionId + " | " + action.getTemplateText() + " | " + action.getClass().getCanonicalName() + " | "
+ KeymapUtil.getShortcutText(actionId) + " | ";
Toolkit.getDefaultToolkit()
.getSystemClipboard()
.setContents(new StringSelection(text), null);
showHint("Action info `" + text + "` copied to clipboard.");
}
}
}