Trigger renumbering when deleting (via cut) the first item of a list

Fixes #2514.
This commit is contained in:
Chris Ball 2015-02-27 12:54:29 -05:00
parent 152f51aeab
commit 063219bbce
1 changed files with 9 additions and 0 deletions

View File

@ -3313,6 +3313,14 @@ function Ace2Inner(){
return [rep.lines.offsetOfIndex(lineRange[0]), rep.lines.offsetOfIndex(lineRange[1])];
}
function handleCut(evt)
{
inCallStackIfNecessary("handleCut", function()
{
doDeleteKey(evt);
});
}
function handleClick(evt)
{
inCallStackIfNecessary("handleClick", function()
@ -4854,6 +4862,7 @@ function Ace2Inner(){
$(document).on("keypress", handleKeyEvent);
$(document).on("keyup", handleKeyEvent);
$(document).on("click", handleClick);
$(document).on("cut", handleCut);
$(root).on("blur", handleBlur);
if (browser.msie)
{