Confluence keyboard shortcut markup

912 views Asked by At

On Stack Overflow, I can use markup for keyboard shortcuts like <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>F2</kbd> for Ctrl+Alt+F2.

Is something like this also possible in Confluence? If yes, how?

2

There are 2 answers

0
Samoht On

I haven't tried it yet, but it seems the free official plugin Markdown Macro for Confluence will help you to use any Markdown syntax.

0
rath On

Two solutions found on Atlassian's forums:

The first is to

Paste table row <kbd>⌘</kbd>+<kbd>Shift</kbd>+<kbd>V</kbd> in the Confluence's shortcuts

The second is to add your own CSS to the page, which is not ideal:

This is done with a combination of CSS and HTML.

Start with a CSS macro (or edit the Look and Feel):

kbd &gt; kbd {
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
  border-radius: 3px;
  padding: .1em .7em;
  border: 1px solid #ccc;
  font-family: Arial, sans-serif;
  background-color: ;
  display: inline-block;
  margin: 0 .1em;
  white-space: nowrap;
  font-size: 1em;
}

Then wrap the key letters and words in HTML:

&lt;kbd&gt;&lt;kbd&gt;K&lt;/kbd&gt;&lt;/kbd&gt;