Merge pull request #2265 from prtksxna/keyboard-shortcut
Add 'Ctrl-5' keyboard shortcut for 'strikethrough' #1987
This commit is contained in:
commit
000648fac8
|
@ -5,7 +5,7 @@
|
|||
"pad.toolbar.bold.title": "Bold (Ctrl-B)",
|
||||
"pad.toolbar.italic.title": "Italic (Ctrl-I)",
|
||||
"pad.toolbar.underline.title": "Underline (Ctrl-U)",
|
||||
"pad.toolbar.strikethrough.title": "Strikethrough",
|
||||
"pad.toolbar.strikethrough.title": "Strikethrough (Ctrl-5)",
|
||||
"pad.toolbar.ol.title": "Ordered list",
|
||||
"pad.toolbar.ul.title": "Unordered List",
|
||||
"pad.toolbar.indent.title": "Indent (TAB)",
|
||||
|
|
|
@ -3741,6 +3741,14 @@ function Ace2Inner(){
|
|||
toggleAttributeOnSelection('underline');
|
||||
specialHandled = true;
|
||||
}
|
||||
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which).toLowerCase() == "5" && (evt.metaKey || evt.ctrlKey))
|
||||
{
|
||||
// cmd-5 (strikethrough)
|
||||
fastIncorp(13);
|
||||
evt.preventDefault();
|
||||
toggleAttributeOnSelection('strikethrough');
|
||||
specialHandled = true;
|
||||
}
|
||||
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which).toLowerCase() == "h" && (evt.ctrlKey))
|
||||
{
|
||||
// cmd-H (backspace)
|
||||
|
|
Loading…
Reference in New Issue