Add a aceSelectionChanged hook to allow plugins to react when the cursor

location changes.
This commit is contained in:
Xavid 2015-07-11 11:32:19 -04:00
parent 2003968263
commit 008d4e653c
2 changed files with 16 additions and 0 deletions

View file

@ -2894,6 +2894,11 @@ function Ace2Inner(){
rep.selFocusAtStart = newSelFocusAtStart;
currentCallStack.repChanged = true;
hooks.callAll('aceSelectionChanged', {
rep: rep,
documentAttributeManager: documentAttributeManager,
});
return true;
//console.log("selStart: %o, selEnd: %o, focusAtStart: %s", rep.selStart, rep.selEnd,
//String(!!rep.selFocusAtStart));