Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
398a6b66
Commit
398a6b66
authored
Apr 18, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加当浏览器失去焦点时选区消失
parent
48505dcd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
minder.event.js
src/core/minder.event.js
+1
-0
editor.js
src/module/editor.js
+3
-0
No files found.
src/core/minder.event.js
View file @
398a6b66
...
...
@@ -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
()
{
...
...
src/module/editor.js
View file @
398a6b66
...
...
@@ -195,6 +195,9 @@ KityMinder.registerModule( "TextEditModule", function () {
'selectionclear'
:
function
(){
km
.
setStatus
(
'normal'
);
receiver
.
setTextEditStatus
(
false
).
clear
()
},
blur
:
function
(){
receiver
.
clear
()
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment