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
67cb3b04
Commit
67cb3b04
authored
Jan 04, 2015
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除旧代码
parent
6213f9d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
51 deletions
+0
-51
keynav.js
src/module/keynav.js
+0
-51
No files found.
src/module/keynav.js
View file @
67cb3b04
...
...
@@ -140,33 +140,9 @@ define(function(require, exports, module) {
}
}
var
NavigateToParentCommand
=
kity
.
createClass
({
base
:
Command
,
execute
:
function
(
km
)
{
var
node
=
km
.
getSelectedNode
();
if
(
node
&&
node
.
parent
)
{
km
.
select
(
node
.
parent
,
true
);
}
this
.
setContentChanged
(
false
);
},
queryState
:
function
(
km
)
{
return
km
.
getSelectedNode
()
?
0
:
-
1
;
},
enableReadOnly
:
true
});
// 稀释用
var
lastFrame
;
return
{
'commands'
:
{
'navparent'
:
NavigateToParentCommand
},
'commandShortcutKeys'
:
{
'navparent'
:
'shift+tab'
},
'events'
:
{
'layoutallfinish'
:
function
()
{
var
root
=
this
.
getRoot
();
...
...
@@ -179,33 +155,6 @@ define(function(require, exports, module) {
navigateTo
(
minder
,
key
==
'up'
?
'top'
:
key
);
}
});
},
'normal.keyup'
:
function
(
e
)
{
if
(
kity
.
Browser
.
ipad
)
{
var
keys
=
keymap
;
var
node
=
e
.
getTargetNode
();
if
(
this
.
receiver
)
this
.
receiver
.
keydownNode
=
node
;
var
keyEvent
=
e
.
originEvent
;
if
(
keyEvent
.
altKey
||
keyEvent
.
ctrlKey
||
keyEvent
.
metaKey
||
keyEvent
.
shiftKey
)
return
;
switch
(
keyEvent
.
keyCode
)
{
case
keys
.
Enter
:
this
.
execCommand
(
'AppendSiblingNode'
);
e
.
preventDefault
();
break
;
case
keys
.
Backspace
:
case
keys
.
Del
:
e
.
preventDefault
();
this
.
execCommand
(
'RemoveNode'
);
break
;
}
}
}
}
};
...
...
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