[Feature Request] Use a keyboard shortcut to trigger a window with content by html
See original GitHub issueContext
- This issue is not a bug report. (please use a different template for reporting a bug)
- This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
I would like to add a feature in my editor: users select a text, and click on a keyboard shortcut, then a window with content by html (eg, a table like this) appears next to the selection, in the end users move the mouse or use another keyboard shortcut to make the window disappear.
I understand that we could use addDynamicKeybinding
or like here to add a keyboard shortcut.
But for the window, it seems that we have only diagnostic window that support html, right? If so, the only use case I know about diagnostic window is by hoverprovider like here, where we need to hover on a text to make the diagnostic window appear.
Does anyone know how to use a keyboard shortcut to trigger a diagnostic window (whose content is related to the selection)?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
accesskey - HTML: HyperText Markup Language | MDN
Alt + Shift + key, On Firefox 57 or newer: Control + Option + key or Control + Alt + key. On Firefox...
Read more >Keyboard shortcuts - Chrome Developers
# Network panel keyboard shortcuts ; Start / stop recording, Command + E · Control + E ; Record a reload, Command +...
Read more >GitLab keyboard shortcuts
Global shortcuts ; Shift + r, Go to your Review requests page. ; Shift + t, Go to your To-Do List page. ;...
Read more >Keyboard shortcuts - Product Documentation | ServiceNow
Keyboard shortcuts ; Toggle application navigator, Alt+ Ctrl+C · Ctrl+Opt+C ; Activate navigation filter field, Alt+Ctrl+F · Ctrl+Opt+F ; Impersonate ...
Read more >Keyboard shortcuts - Microsoft Edge Development
Keyboard shortcuts for opening DevTools ; Open whatever panel you used last, F12 or Ctrl + Shift + I, Command + Option +...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can get the hover to appear with <kbd>Cmd + K, Cmd + I</kbd> on macOS. Not sure what the keybindings are on Windows and Linux but you can figure it out by searching for it with <kbd>F1</kbd>.
Ah, that’s not good news. To create a shortcut that pops up a window that supports html, are there any samples or references to follow?