Stackedit/public/res/extensions/shortcutsDefaultMapping.settings

29 lines
910 B
Plaintext
Raw Normal View History

2014-04-15 23:16:08 +00:00
{
2014-04-16 23:29:51 +00:00
'mod+b': bindPagedownButton('bold'),
'mod+i': bindPagedownButton('italic'),
'mod+l': bindPagedownButton('link'),
'mod+q': bindPagedownButton('quote'),
'mod+k': bindPagedownButton('code'),
'mod+g': bindPagedownButton('image'),
'mod+o': bindPagedownButton('olist'),
'mod+u': bindPagedownButton('ulist'),
'mod+h': bindPagedownButton('heading'),
'mod+r': bindPagedownButton('hr'),
'mod+z': bindPagedownButton('undo'),
'mod+y': bindPagedownButton('redo'),
'mod+shift+z': bindPagedownButton('redo'),
'mod+m': function(evt) {
2014-04-16 23:29:51 +00:00
$('.button-open-discussion').click();
evt.preventDefault();
2014-04-15 23:16:08 +00:00
},
2014-04-16 23:29:51 +00:00
'= = > space': function() {
2014-04-17 23:41:35 +00:00
expand('==> ', '⇒ ');
2014-04-15 23:16:08 +00:00
},
2014-04-16 23:29:51 +00:00
'< = = space': function() {
2014-04-17 23:41:35 +00:00
expand('<== ', '⇐ ');
2014-04-15 23:16:08 +00:00
},
'S t a c k E d i t': function() {
2014-04-16 23:29:51 +00:00
eventMgr.onMessage("You are stunned!!! Aren't you?");
2014-04-15 23:16:08 +00:00
}
}