mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
Add keyboard shortcut to Clear Authorship Colors. Fixes #2292
This commit is contained in:
parent
3eb0652b21
commit
2d597a4cab
1 changed files with 7 additions and 1 deletions
|
@ -3757,7 +3757,7 @@ function Ace2Inner(){
|
||||||
doInsertUnorderedList()
|
doInsertUnorderedList()
|
||||||
specialHandled = true;
|
specialHandled = true;
|
||||||
}
|
}
|
||||||
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which).toLowerCase() == "n" && (evt.metaKey || evt.ctrlKey) && evt.shiftKey)
|
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which).toLowerCase() == "n" && (evt.metaKey || evt.ctrlKey) && evt.shiftKey)
|
||||||
{
|
{
|
||||||
// cmd-shift-N (orderedlist)
|
// cmd-shift-N (orderedlist)
|
||||||
fastIncorp(9);
|
fastIncorp(9);
|
||||||
|
@ -3765,6 +3765,12 @@ function Ace2Inner(){
|
||||||
doInsertOrderedList()
|
doInsertOrderedList()
|
||||||
specialHandled = true;
|
specialHandled = true;
|
||||||
}
|
}
|
||||||
|
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which).toLowerCase() == "c" && (evt.metaKey || evt.ctrlKey) && evt.shiftKey) {
|
||||||
|
// cmd-shift-C (clearauthorship)
|
||||||
|
fastIncorp(9);
|
||||||
|
evt.preventDefault();
|
||||||
|
CMDS.clearauthorship();
|
||||||
|
}
|
||||||
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 a new issue