Commit 398a6b66 authored by campaign's avatar campaign

添加当浏览器失去焦点时选区消失

parent 48505dcd
......@@ -16,6 +16,7 @@ kity.extendClass( Minder, {
this._paper.on( 'click dblclick mousedown contextmenu mouseup mousemove mousewheel DOMMouseScroll touchstart touchmove touchend', this._firePharse.bind( this ) );
if ( window ) {
window.addEventListener( 'resize', this._firePharse.bind( this ) );
window.addEventListener( 'blur', this._firePharse.bind( this ) );
}
},
_bindKeyboardEvents: function () {
......
......@@ -195,6 +195,9 @@ KityMinder.registerModule( "TextEditModule", function () {
'selectionclear':function(){
km.setStatus('normal');
receiver.setTextEditStatus(false).clear()
},
blur:function(){
receiver.clear()
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment