Merge pull request #2533 from cjb/issue-2514-renumber-on-cut
Trigger renumbering when deleting (via cut) the first item of a listpull/2535/head
commit
cc0eaba7e2
|
@ -3313,6 +3313,14 @@ function Ace2Inner(){
|
||||||
return [rep.lines.offsetOfIndex(lineRange[0]), rep.lines.offsetOfIndex(lineRange[1])];
|
return [rep.lines.offsetOfIndex(lineRange[0]), rep.lines.offsetOfIndex(lineRange[1])];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleCut(evt)
|
||||||
|
{
|
||||||
|
inCallStackIfNecessary("handleCut", function()
|
||||||
|
{
|
||||||
|
doDeleteKey(evt);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function handleClick(evt)
|
function handleClick(evt)
|
||||||
{
|
{
|
||||||
inCallStackIfNecessary("handleClick", function()
|
inCallStackIfNecessary("handleClick", function()
|
||||||
|
@ -4854,6 +4862,7 @@ function Ace2Inner(){
|
||||||
$(document).on("keypress", handleKeyEvent);
|
$(document).on("keypress", handleKeyEvent);
|
||||||
$(document).on("keyup", handleKeyEvent);
|
$(document).on("keyup", handleKeyEvent);
|
||||||
$(document).on("click", handleClick);
|
$(document).on("click", handleClick);
|
||||||
|
$(document).on("cut", handleCut);
|
||||||
$(root).on("blur", handleBlur);
|
$(root).on("blur", handleBlur);
|
||||||
if (browser.msie)
|
if (browser.msie)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue