DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:keyboard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
plugin:keyboard [2018-05-11 10:40]
Aleksandr
plugin:keyboard [2018-08-09 19:21] (current)
LarsDW223 New release
Line 6: Line 6:
 email      : freaks@dokuwiki.org email      : freaks@dokuwiki.org
 type       : syntax type       : syntax
-lastupdate : 2018-04-25+lastupdate : 2018-08-09
 compatible : 2006-03-09, 2006-11-06, 2009-12-25 "​Lemming",​ 2010-11-07 "​Anteater",​ 2011-05-25 "​Rincewind",​ "​Angua",​ 2014-09-29 "​Hrun",​ "​Detritus",​ 2017-02-19a "​Frusterick Manners",​ "​Greebo"​ compatible : 2006-03-09, 2006-11-06, 2009-12-25 "​Lemming",​ 2010-11-07 "​Anteater",​ 2011-05-25 "​Rincewind",​ "​Angua",​ 2014-09-29 "​Hrun",​ "​Detritus",​ 2017-02-19a "​Frusterick Manners",​ "​Greebo"​
 depends ​   :  depends ​   : 
Line 54: Line 54:
 Separator signs for the short form can be ''​+''​ or ''​-''​. In both cases the rendered sign between the keys will be a ''​+''​. So in general it does not make a difference if ''​+''​ or ''​-''​ is used. But it does make a difference if you want to include a ''​+''​ or ''​-''​ as a key and not as a separator. If you would like to render the key combination ''​ALT++''​ then you should write: <​code><​kbd>​ALT-+</​kbd></​code>​ Separator signs for the short form can be ''​+''​ or ''​-''​. In both cases the rendered sign between the keys will be a ''​+''​. So in general it does not make a difference if ''​+''​ or ''​-''​ is used. But it does make a difference if you want to include a ''​+''​ or ''​-''​ as a key and not as a separator. If you would like to render the key combination ''​ALT++''​ then you should write: <​code><​kbd>​ALT-+</​kbd></​code>​
 If you would like to render the key combination ''​ALT+-''​ then you should write: <​code><​kbd>​ALT+-</​kbd></​code>​ If you would like to render the key combination ''​ALT+-''​ then you should write: <​code><​kbd>​ALT+-</​kbd></​code>​
 +
 +==== Escape mechanism ====
 +
 +Since release 2018-08-09 it is possible to surround keys with '​...'​. All keys enclosed in '​...'​ will be displayed as-is without interpreting ''​+''​ or ''​-''​ as separators. Here is an example:
 +
 +<​code>​
 +<​kbd>'​ALT+H'</​kbd>​
 +</​code>​
 +
 +This example would display "​ALT+H"​ as a single key instead of two keys: "​ALT"​ + "​H"​.
  
 ==== Specify CSS class ==== ==== Specify CSS class ====
plugin/keyboard.txt ยท Last modified: 2018-08-09 19:21 by LarsDW223