Commit 91eb21d3 authored by campaign's avatar campaign

修复F2

parent 7218ba10
( 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 );
},
......
......@@ -21,8 +21,8 @@ KityMinder.LANG[ 'zh-cn' ] = {
'preference': '偏好设置',
'hyperlink':'插入链接',
'unhyperlink':"删除链接",
'expandnode':"展开所有节点",
'collapsenode':"闭合所有节点"
'expandnode':"展开节点",
'collapsenode':"闭合节点"
},
'popupcolor': {
'clearColor': '清空颜色',
......
......@@ -67,7 +67,8 @@ var keymap = KityMinder.keymap = {
37: 1,
38: 1,
39: 1,
40: 1
40: 1,
113:1
},
'isSelectedNodeKey': {
//上下左右
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment