mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 18:06:15 -04:00
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
2 changed files with 18 additions and 2 deletions
|
@ -3749,6 +3749,22 @@ function Ace2Inner(){
|
|||
toggleAttributeOnSelection('strikethrough');
|
||||
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))
|
||||
{
|
||||
// cmd-H (backspace)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue