Lost Focus Event For Editor

Hello, I’m trying to trap the lost focus event for the editor, but with no success.
Leaving the editor does not fire the event.
My goal is to get the current selection when the editor loses focus as this would be a possible solution to my previous post.

Here’s my code.

dhxWins = new dhtmlXWindows();
w1 = dhxWins.createWindow(“w1”, 20, 30, 800, 350);
_editor = w1.attachEditor();
_editor.edWin.attachEvent(“onBlur”, editorLostFocus);

function editorLostFocus() {
var cRange = _editor.edDoc.selection.createRange();