瀏覽代碼

Bug fix - choosing shortcut with ENTER deletes the space preceding the @

Vijayakrishnan 2 年之前
父節點
當前提交
6cbbac186f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js-dev/shortcut.js

+ 1 - 1
js-dev/shortcut.js

@@ -91,7 +91,7 @@
                     document.execCommand("delete", true, null);
                 }
             }
-            if(_clearReturn) document.execCommand("delete", true, null);
+            // if(_clearReturn) document.execCommand("delete", true, null);
             document.execCommand("insertText", true, options[index].value);
             discard();
         }