angular-mentions icon indicating copy to clipboard operation
angular-mentions copied to clipboard

please add a feature to get all mention list while we type 'Ctrl+Space'

Open Neethukp93 opened this issue 7 years ago • 6 comments

I want to get all the mention list whenever I am typing Ctrl+Space . It will be helpful if you can integrate that feature .

Neethukp93 avatar Nov 19 '18 08:11 Neethukp93

To confirm, you mean the mention list would open pressing Ctrl+Space instead of pressing the trigger character (e.g "@")? And in this scenario there is no prefix added to the items when they are selected?

dmacfarlane avatar Nov 20 '18 11:11 dmacfarlane

yes...that is what I exactly need. when i press Ctrl+space , mention list need to be displayed in the "textarea" without any prefix character.

Neethukp93 avatar Nov 23 '18 08:11 Neethukp93

    const event = new KeyboardEvent("keydown", { key : `@`, code : `Digit2`});

Every time you hit Ctrl+Space create a keyboard event

Alec-Aldrine-Lakra avatar Jan 14 '20 12:01 Alec-Aldrine-Lakra

@Alec-Aldrine-Lakra this will show the items list, but will not let you interact with it (arrow keys or click)

steve-heine avatar Sep 29 '20 19:09 steve-heine

the problem seems to occur because pos === this.startPos, but the code requires pos > this.startPos

steve-heine avatar Oct 01 '20 00:10 steve-heine

Is it possible to check for the presence of a previous character? so that the trigger does not work when it is called in the middle of the word?

RomanTseduliak avatar Jul 06 '21 09:07 RomanTseduliak