Merge pull request #2271 from prtksxna/keyboard-error

Use 'evt.shiftKey' instead of matching 'charCodes'
pull/2276/head^2
John McLear 2014-10-14 14:12:39 +01:00
commit bba97e94f0
1 changed files with 2 additions and 2 deletions

View File

@ -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);