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
ee406ba3
Commit
ee406ba3
authored
Mar 01, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
by zhanyi
parent
fc92e76f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
minder.js
src/core/minder.js
+2
-4
editor.js
src/module/editor.js
+3
-0
editor.receiver.js
src/module/editor.receiver.js
+1
-0
No files found.
src/core/minder.js
View file @
ee406ba3
...
@@ -110,6 +110,7 @@ var Minder = KityMinder.Minder = kity.createClass( "KityMinder", {
...
@@ -110,6 +110,7 @@ var Minder = KityMinder.Minder = kity.createClass( "KityMinder", {
return
false
return
false
}
}
me
.
on
(
'keydown'
,
function
(
e
)
{
me
.
on
(
'keydown'
,
function
(
e
)
{
var
originEvent
=
e
.
originEvent
;
var
originEvent
=
e
.
originEvent
;
var
keyCode
=
originEvent
.
keyCode
||
originEvent
.
which
;
var
keyCode
=
originEvent
.
keyCode
||
originEvent
.
which
;
for
(
var
i
in
shortcutkeys
)
{
for
(
var
i
in
shortcutkeys
)
{
...
@@ -120,10 +121,7 @@ var Minder = KityMinder.Minder = kity.createClass( "KityMinder", {
...
@@ -120,10 +121,7 @@ var Minder = KityMinder.Minder = kity.createClass( "KityMinder", {
current
++
;
current
++
;
}
}
});
});
//todo 暂时通过receiver判断
if
(
me
.
isTextEditStatus
()){
return
;
}
if
(
current
==
keys
.
length
){
if
(
current
==
keys
.
length
){
if
(
me
.
queryCommandState
(
i
)
!=
-
1
)
if
(
me
.
queryCommandState
(
i
)
!=
-
1
)
me
.
execCommand
(
i
);
me
.
execCommand
(
i
);
...
...
src/module/editor.js
View file @
ee406ba3
...
@@ -183,6 +183,9 @@ KityMinder.registerModule( "TextEditModule", function () {
...
@@ -183,6 +183,9 @@ KityMinder.registerModule( "TextEditModule", function () {
}
}
receiver
.
clear
().
setTextEditStatus
(
false
);
receiver
.
clear
().
setTextEditStatus
(
false
);
if
(
this
.
getStatus
()
==
'textedit'
){
this
.
setStatus
(
'normal'
)
}
},
},
'selectionclear'
:
function
(){
'selectionclear'
:
function
(){
km
.
setStatus
(
'normal'
);
km
.
setStatus
(
'normal'
);
...
...
src/module/editor.receiver.js
View file @
ee406ba3
...
@@ -3,6 +3,7 @@ Minder.Receiver = kity.createClass('Receiver',{
...
@@ -3,6 +3,7 @@ Minder.Receiver = kity.createClass('Receiver',{
clear
:
function
(){
clear
:
function
(){
this
.
container
.
innerHTML
=
''
;
this
.
container
.
innerHTML
=
''
;
this
.
selection
&&
this
.
selection
.
setHide
();
this
.
selection
&&
this
.
selection
.
setHide
();
this
.
range
&&
this
.
range
.
nativeSel
.
removeAllRanges
();
this
.
index
=
0
;
this
.
index
=
0
;
return
this
;
return
this
;
},
},
...
...
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