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
8e876570
Commit
8e876570
authored
May 06, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of github.com:fex-team/kityminder into dev
parents
4a24abd3
72fcba5d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
CHANGELOG.md
CHANGELOG.md
+1
-0
contextmenu.js
src/adapter/contextmenu.js
+9
-5
keymap.js
src/core/keymap.js
+2
-0
No files found.
CHANGELOG.md
View file @
8e876570
...
...
@@ -6,6 +6,7 @@
2.
添加超链接
3.
优化了当输入中文时,中文显示位置与光标距离过远的问题
4.
选中节点时,按F2直接进入文字编辑状态
5.
添加选中节点后可直接输入文字
###问题修复
1.
修复当滚动鼠标滚轮时,光标不跟着移动的问题
...
...
src/adapter/contextmenu.js
View file @
8e876570
...
...
@@ -28,19 +28,25 @@ KM.registerUI( 'contextmenu', function () {
});
me
.
$container
.
append
(
$menu
);
me
.
on
(
'contextmenu'
,
function
(
e
){
if
(
this
.
getSelectedNodes
().
length
==
0
){
var
node
=
e
.
getTargetNode
();
if
(
node
){
this
.
select
(
node
);
}
}
var
items
=
me
.
getContextmenu
();
var
data
=
[];
utils
.
each
(
items
,
function
(
i
,
item
){
if
(
item
.
divider
){
data
.
push
(
item
)
data
.
length
&&
data
.
push
(
item
);
return
;
}
if
(
me
.
queryCommandState
(
item
.
cmdName
)
!=-
1
){
data
.
push
({
label
:
item
.
label
,
value
:
item
.
cmdName
})
}
});
...
...
@@ -52,10 +58,8 @@ KM.registerUI( 'contextmenu', function () {
$menu
.
kmui
().
setData
({
data
:
data
}).
position
(
e
.
getPosition
()).
show
();
e
.
preventDefault
()
}
e
.
preventDefault
()
});
me
.
on
(
'click'
,
function
(){
...
...
src/core/keymap.js
View file @
8e876570
...
...
@@ -50,6 +50,8 @@ var keymap = KityMinder.keymap = {
'n'
:
78
,
'notContentInput'
:{
8
:
1
,
46
:
1
,
13
:
1
,
9
:
1
,
33
:
1
,
...
...
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