Skip to content

Commit

Permalink
改进输入
Browse files Browse the repository at this point in the history
  • Loading branch information
campaign committed Jul 10, 2014
1 parent f963548 commit 3e04f19
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/module/editor.receiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,17 @@ Minder.Receiver = kity.createClass('Receiver', {

if (e.originEvent.ctrlKey || e.originEvent.metaKey) {

//选中节点时的复制粘贴,要变成normal
if(this.selection.isHide() && {
86:1,
88:1,
67:1
}[keyCode]){
restoreTextContent();
this.km.setStatus('normal');
return;
}

//粘贴
if (keyCode == keymap.v) {

Expand All @@ -271,6 +282,8 @@ Minder.Receiver = kity.createClass('Receiver', {
}, 100);
return;
}


}
//针对不能连续删除做处理
if(keymap.Del == keyCode || keymap.Backspace == keyCode)
Expand Down

0 comments on commit 3e04f19

Please sign in to comment.