Add keyboard shortcuts for ordered and unordered lists and update tooltips #1987
Ordered List: Ctrl-Shift-N Unordered List: Ctrl-Shift-L
This commit is contained in:
parent
000648fac8
commit
7b8953ee75
|
@ -6,8 +6,8 @@
|
||||||
"pad.toolbar.italic.title": "Italic (Ctrl-I)",
|
"pad.toolbar.italic.title": "Italic (Ctrl-I)",
|
||||||
"pad.toolbar.underline.title": "Underline (Ctrl-U)",
|
"pad.toolbar.underline.title": "Underline (Ctrl-U)",
|
||||||
"pad.toolbar.strikethrough.title": "Strikethrough (Ctrl-5)",
|
"pad.toolbar.strikethrough.title": "Strikethrough (Ctrl-5)",
|
||||||
"pad.toolbar.ol.title": "Ordered list",
|
"pad.toolbar.ol.title": "Ordered list (Ctrl-Shift-N)",
|
||||||
"pad.toolbar.ul.title": "Unordered List",
|
"pad.toolbar.ul.title": "Unordered List (Ctrl-Shift-L)",
|
||||||
"pad.toolbar.indent.title": "Indent (TAB)",
|
"pad.toolbar.indent.title": "Indent (TAB)",
|
||||||
"pad.toolbar.unindent.title": "Outdent (Shift+TAB)",
|
"pad.toolbar.unindent.title": "Outdent (Shift+TAB)",
|
||||||
"pad.toolbar.undo.title": "Undo (Ctrl-Z)",
|
"pad.toolbar.undo.title": "Undo (Ctrl-Z)",
|
||||||
|
|
|
@ -3749,6 +3749,22 @@ function Ace2Inner(){
|
||||||
toggleAttributeOnSelection('strikethrough');
|
toggleAttributeOnSelection('strikethrough');
|
||||||
specialHandled = true;
|
specialHandled = true;
|
||||||
}
|
}
|
||||||
|
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which) == "L" && (evt.metaKey || evt.ctrlKey))
|
||||||
|
{
|
||||||
|
// cmd-shift-L (unorderedlist)
|
||||||
|
fastIncorp(9);
|
||||||
|
evt.preventDefault();
|
||||||
|
doInsertUnorderedList()
|
||||||
|
specialHandled = true;
|
||||||
|
}
|
||||||
|
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which) == "N" && (evt.metaKey || evt.ctrlKey))
|
||||||
|
{
|
||||||
|
// cmd-shift-N (orderedlist)
|
||||||
|
fastIncorp(9);
|
||||||
|
evt.preventDefault();
|
||||||
|
doInsertOrderedList()
|
||||||
|
specialHandled = true;
|
||||||
|
}
|
||||||
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which).toLowerCase() == "h" && (evt.ctrlKey))
|
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which).toLowerCase() == "h" && (evt.ctrlKey))
|
||||||
{
|
{
|
||||||
// cmd-H (backspace)
|
// cmd-H (backspace)
|
||||||
|
|
Loading…
Reference in New Issue