Merge pull request #2271 from prtksxna/keyboard-error
Use 'evt.shiftKey' instead of matching 'charCodes'pull/2276/head^2
commit
bba97e94f0
|
@ -3749,7 +3749,7 @@ function Ace2Inner(){
|
||||||
toggleAttributeOnSelection('strikethrough');
|
toggleAttributeOnSelection('strikethrough');
|
||||||
specialHandled = true;
|
specialHandled = true;
|
||||||
}
|
}
|
||||||
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which) == "L" && (evt.metaKey || evt.ctrlKey))
|
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which).toLowerCase() == "l" && (evt.metaKey || evt.ctrlKey) && evt.shiftKey)
|
||||||
{
|
{
|
||||||
// cmd-shift-L (unorderedlist)
|
// cmd-shift-L (unorderedlist)
|
||||||
fastIncorp(9);
|
fastIncorp(9);
|
||||||
|
@ -3757,7 +3757,7 @@ function Ace2Inner(){
|
||||||
doInsertUnorderedList()
|
doInsertUnorderedList()
|
||||||
specialHandled = true;
|
specialHandled = true;
|
||||||
}
|
}
|
||||||
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which) == "N" && (evt.metaKey || evt.ctrlKey))
|
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);
|
||||||
|
|
Loading…
Reference in New Issue