Change add note shorcut to avoid collision with chrome shortcuts

This commit is contained in:
Paulo Gustavo Veiga 2022-03-14 00:27:04 -03:00
parent 08242dcbad
commit 8e263e4047
2 changed files with 3 additions and 3 deletions

View File

@ -128,8 +128,8 @@ class KeyboardShortcutDialog extends BootstrapDialog {
</tr>
<tr>
<td>${$msg('TOPIC_NOTE')}</td>
<td>Ctrl + n</td>
<td> + n</td>
<td>Ctrl + k</td>
<td> + k</td>
</tr>
<tr>
<td>${$msg('TOPIC_LINK')}</td>

View File

@ -125,7 +125,7 @@ class DesignerKeyboard extends Keyboard {
},
);
this.addShortcut(
['ctrl+n', 'meta+n'], (event: Event) => {
['ctrl+k', 'meta+k'], (event: Event) => {
event.preventDefault();
event.stopPropagation();
designer.addNote();