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
91215a80
Commit
91215a80
authored
May 08, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added short key
parent
af3b15e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
52 deletions
+61
-52
keymap.js
src/core/keymap.js
+59
-51
expand.js
src/module/expand.js
+2
-1
No files found.
src/core/keymap.js
View file @
91215a80
var
keymap
=
KityMinder
.
keymap
=
{
'Backspace'
:
8
,
'Tab'
:
9
,
'Enter'
:
13
,
var
keymap
=
KityMinder
.
keymap
=
{
'Backspace'
:
8
,
'Tab'
:
9
,
'Enter'
:
13
,
'Shift'
:
16
,
'Control'
:
17
,
'Alt'
:
18
,
'CapsLock'
:
20
,
'Shift'
:
16
,
'Control'
:
17
,
'Alt'
:
18
,
'CapsLock'
:
20
,
'Esc'
:
27
,
'Spacebar'
:
32
,
'Spacebar'
:
32
,
'PageUp'
:
33
,
'PageDown'
:
34
,
'End'
:
35
,
'Home'
:
36
,
'PageUp'
:
33
,
'PageDown'
:
34
,
'End'
:
35
,
'Home'
:
36
,
'Left'
:
37
,
'Up'
:
38
,
'Right'
:
39
,
'Down'
:
40
,
'Left'
:
37
,
'Up'
:
38
,
'Right'
:
39
,
'Down'
:
40
,
'Insert'
:
45
,
'Insert'
:
45
,
'Del'
:
46
,
'Del'
:
46
,
'NumLock'
:
144
,
'NumLock'
:
144
,
'Cmd'
:
91
,
'Cmd'
:
91
,
'F2'
:
113
,
'F3'
:
114
,
'F4'
:
115
,
'F2'
:
113
,
'F3'
:
114
,
'F4'
:
115
,
'='
:
187
,
'-'
:
189
,
'='
:
187
,
'-'
:
189
,
"b"
:
66
,
'i'
:
73
,
"b"
:
66
,
'i'
:
73
,
//回退
'z'
:
90
,
'y'
:
89
,
'z'
:
90
,
'y'
:
89
,
//粘贴
'v'
:
86
,
'x'
:
88
,
'v'
:
86
,
'x'
:
88
,
's'
:
83
,
's'
:
83
,
'n'
:
78
,
'notContentInput'
:{
8
:
1
,
46
:
1
,
13
:
1
,
9
:
1
,
33
:
1
,
34
:
1
,
35
:
1
,
36
:
1
,
16
:
1
,
17
:
1
,
18
:
1
,
'n'
:
78
,
'/'
:
191
,
'.'
:
190
,
'notContentInput'
:
{
8
:
1
,
46
:
1
,
13
:
1
,
9
:
1
,
33
:
1
,
34
:
1
,
35
:
1
,
36
:
1
,
16
:
1
,
17
:
1
,
18
:
1
,
//上下左右
37
:
1
,
38
:
1
,
39
:
1
,
40
:
1
37
:
1
,
38
:
1
,
39
:
1
,
40
:
1
},
'isSelectedNodeKey'
:{
'isSelectedNodeKey'
:
{
//上下左右
37
:
1
,
38
:
1
,
39
:
1
,
40
:
1
,
13
:
1
,
9
:
1
37
:
1
,
38
:
1
,
39
:
1
,
40
:
1
,
13
:
1
,
9
:
1
}
};
\ No newline at end of file
src/module/expand.js
View file @
91215a80
...
...
@@ -215,7 +215,8 @@ KityMinder.registerModule( "Expand", function () {
}
},
'addShortcutKeys'
:
{
"ExpandNode"
:
"ctrl+/"
,
//expand
"CollapseNode"
:
"ctrl+."
//collapse
},
'commands'
:
{
'ExpandNode'
:
ExpandNodeCommand
,
...
...
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