diff --git a/packages/roosterjs-editor-plugins/lib/plugins/Picker/PickerPlugin.ts b/packages/roosterjs-editor-plugins/lib/plugins/Picker/PickerPlugin.ts index 52132d6e792..3d6a08f2cc4 100644 --- a/packages/roosterjs-editor-plugins/lib/plugins/Picker/PickerPlugin.ts +++ b/packages/roosterjs-editor-plugins/lib/plugins/Picker/PickerPlugin.ts @@ -41,6 +41,8 @@ const UNIDENTIFIED_KEY = 'Unidentified'; // the char code for Android keyboard events on Webview below 51. const UNIDENTIFIED_CODE = [0, 229]; +const ALLOWED_CHAR_BEFORE_TRIGGER = ['(', '+']; + /** * PickerPlugin represents a plugin of editor which can handle picker related behaviors, including * - Show picker when special trigger key is pressed @@ -347,7 +349,7 @@ export default class PickerPlugin= 0 && wordBeforeCursor[1] == this.pickerOptions.triggerCharacter)) ) { this.setIsSuggesting(true); @@ -565,7 +567,8 @@ export default class PickerPlugin