mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Add node shoutcuts
This commit is contained in:
parent
e0e53c331f
commit
a6262ee5ff
@ -126,6 +126,16 @@ class KeyboardShortcutDialog extends BootstrapDialog {
|
||||
<td>Ctrl + b</td>
|
||||
<td>⌘ + b</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>${$msg('TOPIC_NOTE')}</td>
|
||||
<td>Ctrl + n</td>
|
||||
<td>⌘ + n</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>${$msg('TOPIC_LINK')}</td>
|
||||
<td>Ctrl + l</td>
|
||||
<td>⌘ + l</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>`);
|
||||
|
@ -117,6 +117,20 @@ class DesignerKeyboard extends Keyboard {
|
||||
designer.copyToClipboard();
|
||||
},
|
||||
);
|
||||
this.addShortcut(
|
||||
['ctrl+l', 'meta+l'], (event: Event) => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
designer.addLink();
|
||||
},
|
||||
);
|
||||
this.addShortcut(
|
||||
['ctrl+n', 'meta+n'], (event: Event) => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
designer.addNote();
|
||||
},
|
||||
);
|
||||
this.addShortcut(
|
||||
['ctrl+v', 'meta+v'], (event: Event) => {
|
||||
event.preventDefault();
|
||||
|
@ -36,7 +36,7 @@ const ZH = {
|
||||
ONE_TOPIC_MUST_BE_SELECTED: '无法创建主题。必须选择一个主题。',
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE: '无法折叠子节点,必须只选择一个主题。',
|
||||
SAVE_COULD_NOT_BE_COMPLETED: '无法完成保存,请稍后再试。',
|
||||
UNEXPECTED_ERROR_LOADING: "我们很抱歉,发生了意外错误。\n再次尝试重新加载编辑器。如果问题仍然存在,请联系我们support@wisemapping.com。",
|
||||
UNEXPECTED_ERROR_LOADING: '我们很抱歉,发生了意外错误。\n再次尝试重新加载编辑器。如果问题仍然存在,请联系我们support@wisemapping.com。',
|
||||
MAIN_TOPIC: '重点主题',
|
||||
SUB_TOPIC: '子主题',
|
||||
ISOLATED_TOPIC: '独立主题',
|
||||
|
Loading…
Reference in New Issue
Block a user