mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
[fix] Have one setting for each shortcut to create ordered list
This is an adjustment to #2891.
This commit is contained in:
parent
97038c2183
commit
0cb8d31e95
4 changed files with 96 additions and 8 deletions
|
@ -122,6 +122,7 @@ exports.padShortcutEnabled = {
|
|||
"cmd5" : true,
|
||||
"cmdShiftL" : true,
|
||||
"cmdShiftN" : true,
|
||||
"cmdShift1" : true,
|
||||
"cmdShiftC" : true,
|
||||
"cmdH" : true,
|
||||
"ctrlHome" : true,
|
||||
|
|
|
@ -3939,9 +3939,9 @@ function Ace2Inner(){
|
|||
doInsertUnorderedList()
|
||||
specialHandled = true;
|
||||
}
|
||||
if ((!specialHandled) && isTypeForCmdKey && (String.fromCharCode(which).toLowerCase() == "n" || String.fromCharCode(which) == 1) && (evt.metaKey || evt.ctrlKey) && evt.shiftKey && padShortcutEnabled.cmdShiftN)
|
||||
if ((!specialHandled) && isTypeForCmdKey && ((String.fromCharCode(which).toLowerCase() == "n" && padShortcutEnabled.cmdShiftN) || (String.fromCharCode(which) == 1 && padShortcutEnabled.cmdShift1)) && (evt.metaKey || evt.ctrlKey) && evt.shiftKey)
|
||||
{
|
||||
// cmd-shift-N (orderedlist)
|
||||
// cmd-shift-N and cmd-shift-1 (orderedlist)
|
||||
fastIncorp(9);
|
||||
evt.preventDefault();
|
||||
doInsertOrderedList()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue