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
91eb21d3
Commit
91eb21d3
authored
May 08, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复F2
parent
7218ba10
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
markers.js
dialogs/markers/markers.js
+7
-7
zh-cn.js
lang/zh-cn/zh-cn.js
+2
-2
keymap.js
src/core/keymap.js
+2
-1
keyboard.js
src/module/keyboard.js
+2
-2
No files found.
dialogs/markers/markers.js
View file @
91eb21d3
(
function
()
{
KM
.
registerWidget
(
'markers'
,
{
tpl
:
"<style>"
+
"
<%= container %> .priority .icon{background:url(dialogs/markers/images/iconpriority.png) 0 0}"
+
"<%= container %> .progress .icon{background:url(dialogs/markers/images/iconprogress.png) 0 0}"
+
"<%= container %> .icon.p2{background-position: -20px 0}"
+
"<%= container %> .icon.p3{background-position: -40px 0}"
+
"<%= container %> .icon.p4{background-position: -60px 0}"
+
"<%= container %> .icon.p5{background-position: -80px 0}"
+
".kmui-dialog-
<%= container %> .priority .icon{background:url(dialogs/markers/images/iconpriority.png) 0 0}"
+
"
.kmui-dialog-
<%= container %> .progress .icon{background:url(dialogs/markers/images/iconprogress.png) 0 0}"
+
"
.kmui-dialog-
<%= container %> .icon.p2{background-position: -20px 0}"
+
"
.kmui-dialog-
<%= container %> .icon.p3{background-position: -40px 0}"
+
"
.kmui-dialog-
<%= container %> .icon.p4{background-position: -60px 0}"
+
"
.kmui-dialog-
<%= container %> .icon.p5{background-position: -80px 0}"
+
"</style>"
+
"<ul class='icon-list priority'>"
+
"<li value='1' type='priority'><span class='icon p1'></span><span><%= priority %>1</span></li>"
+
...
...
@@ -25,7 +25,7 @@
initContent
:
function
(
km
,
$w
)
{
var
lang
=
km
.
getLang
(
'dialogs.markers'
);
if
(
lang
)
{
var
html
=
$
.
parseTmpl
(
this
.
tpl
,
utils
.
extend
({
'container'
:
$w
.
attr
(
'class'
)
},
lang
)
);
var
html
=
$
.
parseTmpl
(
this
.
tpl
,
utils
.
extend
({
'container'
:
'markers'
},
lang
)
);
}
this
.
root
().
html
(
html
);
},
...
...
lang/zh-cn/zh-cn.js
View file @
91eb21d3
...
...
@@ -21,8 +21,8 @@ KityMinder.LANG[ 'zh-cn' ] = {
'preference'
:
'偏好设置'
,
'hyperlink'
:
'插入链接'
,
'unhyperlink'
:
"删除链接"
,
'expandnode'
:
"展开
所有
节点"
,
'collapsenode'
:
"闭合
所有
节点"
'expandnode'
:
"展开节点"
,
'collapsenode'
:
"闭合节点"
},
'popupcolor'
:
{
'clearColor'
:
'清空颜色'
,
...
...
src/core/keymap.js
View file @
91eb21d3
...
...
@@ -67,7 +67,8 @@ var keymap = KityMinder.keymap = {
37
:
1
,
38
:
1
,
39
:
1
,
40
:
1
40
:
1
,
113
:
1
},
'isSelectedNodeKey'
:
{
//上下左右
...
...
src/module/keyboard.js
View file @
91eb21d3
...
...
@@ -144,11 +144,11 @@ KityMinder.registerModule( "KeyboardModule", function () {
case
keys
.
Backspace
:
case
keys
.
Del
:
e
.
preventDefault
();
if
(
this
.
queryCommandState
(
'removenode'
)
!==
-
1
)
this
.
execCommand
(
'removenode'
);
this
.
execCommand
(
'removenode'
);
break
;
case
keys
.
F2
:
e
.
preventDefault
();
if
(
this
.
queryCommandState
(
'editnode'
)
!==
-
1
)
this
.
execCommand
(
'editnode'
);
this
.
execCommand
(
'editnode'
);
break
;
case
keys
.
Left
:
...
...
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