// We add binding to the RootPane
JRootPane rootPane = frame.getRootPane();
//Specify the KeyStroke and give the action a name
KeyStroke KEY = KeyStroke.getKeyStroke("control S");
String actionName = "captureMouseLoc";
//map the keystroke to the actionName
rootPane.getInputMap().put(KEY, actionName);
//map the actionName to the action itself
rootPane.getActionMap().put(actionName, action);
创建一个类似于
的链接但是如何创建指向等宽文本的链接:pandoc
如果我尝试
`pandoc <https://github.com/jgm/pandoc>`_
我得到了这个问题:
`` ``pandoc`` <https://github.com/jgm/pandoc>`_
&lt; https://github.com/jgm/pandoc&gt;`_