'Monaco Editor - execute custom functions when 'ctrl+click'

I need to simulate a link behaviour in monaco-editor:

  • When holding CTRL the line should be underlined.
  • When clicking the mouse a custom method should be executed.

Is there any way to achieve it?

thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source