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
359e26b6
Commit
359e26b6
authored
Mar 23, 2014
by
techird
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of github.com:fex-team/kityminder into dev
parents
6f2a9ca6
47e589f9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
6 deletions
+37
-6
CHANGELOG.md
CHANGELOG.md
+3
-1
help.js
dialogs/help/help.js
+1
-3
social.js
social/social.js
+28
-1
keymap.js
src/core/keymap.js
+5
-1
No files found.
CHANGELOG.md
View file @
359e26b6
# KityMinder Change Log
## v1.2.0
### 功能更新
1.
添加快捷键,新建脑图(ctrl+n),分享脑图(ctrl+shift+s),保存脑图(ctrl+s)
## v1.1.0
...
...
dialogs/help/help.js
View file @
359e26b6
...
...
@@ -50,9 +50,7 @@
}
this
.
root
().
html
(
html
);
},
initEvent
:
function
(
km
,
$w
)
{
},
initEvent
:
function
(
km
,
$w
)
{},
width
:
400
}
);
}
)();
\ No newline at end of file
social/social.js
View file @
359e26b6
...
...
@@ -386,4 +386,31 @@ $( function () {
}
window
.
km
.
on
(
'contentchange'
,
checkAutoSave
);
}
);
\ No newline at end of file
//添加快捷键
$
(
document
.
body
).
keydown
(
function
(
e
){
var
keyCode
=
e
.
keyCode
||
e
.
which
;
//添加快捷键
if
((
e
.
ctrlKey
||
e
.
metaKey
)){
switch
(
keyCode
){
//保存
case
KM
.
keymap
.
s
:
if
(
e
.
shiftKey
){
shareThisFile
()
}
else
{
saveThisFile
();
}
e
.
preventDefault
();
break
;
case
KM
.
keymap
.
n
:
newFile
();
e
.
preventDefault
();
break
;
}
}
})
}
);
src/core/keymap.js
View file @
359e26b6
...
...
@@ -40,5 +40,9 @@ var keymap = KityMinder.keymap = {
'y'
:
89
,
//粘贴
'v'
:
86
,
'x'
:
88
'x'
:
88
,
's'
:
83
,
'n'
:
78
};
\ No newline at end of file
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