Sfoglia il codice sorgente

[use-shortcuts] support multiple shortcut sets "hpi,user" for ex.

Vijayakrishnan 3 anni fa
parent
commit
0b14f5e0c0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      public/js/shortcut.js

+ 1 - 1
public/js/shortcut.js

@@ -126,7 +126,7 @@
                         backtrackAfterApplying = true;
                         strPart = '@';
                         let options = [], noteRTE = $(input).closest('[note-rte]');
-                        let scSets = noteRTE.attr('use-shortcuts') ? noteRTE.attr('use-shortcuts').split(',') : 'user'
+                        let scSets = noteRTE.attr('use-shortcuts') ? noteRTE.attr('use-shortcuts').split(',') : ['user']
                         for (let i = 0; i < scSets.length; i++) {
                             if(window[$.trim(scSets[i]) + 'Shortcuts']) {
                                 options = options.concat(window[$.trim(scSets[i]) + 'Shortcuts']);