Feat:修改插入概要的快捷键为Ctrl+G

This commit is contained in:
wanglin2 2023-07-21 11:28:49 +08:00
parent 17b7a023ba
commit 3aed09a8c3
7 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "simple-mind-map", "name": "simple-mind-map",
"version": "0.6.7", "version": "0.6.8",
"description": "一个简单的web在线思维导图", "description": "一个简单的web在线思维导图",
"authors": [ "authors": [
{ {

View File

@ -215,7 +215,7 @@ class Render {
} }
this.mindMap.keyCommand.addShortcut('Enter', this.insertNodeWrap) this.mindMap.keyCommand.addShortcut('Enter', this.insertNodeWrap)
// 插入概要 // 插入概要
this.mindMap.keyCommand.addShortcut('Control+s', this.addGeneralization) this.mindMap.keyCommand.addShortcut('Control+g', this.addGeneralization)
// 展开/收起节点 // 展开/收起节点
this.toggleActiveExpand = this.toggleActiveExpand.bind(this) this.toggleActiveExpand = this.toggleActiveExpand.bind(this)
this.mindMap.keyCommand.addShortcut('/', this.toggleActiveExpand) this.mindMap.keyCommand.addShortcut('/', this.toggleActiveExpand)

View File

@ -210,7 +210,7 @@ export const shortcutKeyList = [
{ {
icon: 'icongaikuozonglan', icon: 'icongaikuozonglan',
name: 'Insert summary', name: 'Insert summary',
value: 'Ctrl + S' value: 'Ctrl + G'
}, },
{ {
icon: 'iconzhankai', icon: 'iconzhankai',

View File

@ -270,7 +270,7 @@ export const shortcutKeyList = [
{ {
icon: 'icongaikuozonglan', icon: 'icongaikuozonglan',
name: '插入概要', name: '插入概要',
value: 'Ctrl + S' value: 'Ctrl + G'
}, },
{ {
icon: 'iconzhankai', icon: 'iconzhankai',

View File

@ -25,7 +25,7 @@
}, },
{ {
name: '插入概要', name: '插入概要',
value: 'Ctrl + S' value: 'Ctrl + S'// v0.6.8+改为Ctrl + G
}, },
{ {
name: '展开/收起节点', name: '展开/收起节点',

View File

@ -24,7 +24,7 @@
}, },
{ {
<span class="hljs-attr">name</span>: <span class="hljs-string">&#x27;插入概要&#x27;</span>, <span class="hljs-attr">name</span>: <span class="hljs-string">&#x27;插入概要&#x27;</span>,
<span class="hljs-attr">value</span>: <span class="hljs-string">&#x27;Ctrl + S&#x27;</span> <span class="hljs-attr">value</span>: <span class="hljs-string">&#x27;Ctrl + S&#x27;</span><span class="hljs-comment">// v0.6.8+Ctrl + G</span>
}, },
{ {
<span class="hljs-attr">name</span>: <span class="hljs-string">&#x27;展开/收起节点&#x27;</span>, <span class="hljs-attr">name</span>: <span class="hljs-string">&#x27;展开/收起节点&#x27;</span>,

View File

@ -23,7 +23,7 @@
:class="{ disabled: insertNodeBtnDisabled }" :class="{ disabled: insertNodeBtnDisabled }"
> >
{{ $t('contextmenu.insertSummary') }} {{ $t('contextmenu.insertSummary') }}
<span class="desc">Ctrl + S</span> <span class="desc">Ctrl + G</span>
</div> </div>
<div <div
class="item" class="item"