@github/markdown-toolbar-element
Advanced tools
+1
-0
@@ -56,2 +56,3 @@ declare global { | ||
| constructor(); | ||
| connectedCallback(): void; | ||
| } | ||
@@ -58,0 +59,0 @@ declare class MarkdownLinkButtonElement extends MarkdownButtonElement { |
+6
-1
@@ -120,2 +120,6 @@ const buttonSelectors = [ | ||
| } | ||
| connectedCallback() { | ||
| super.connectedCallback(); | ||
| this.setAttribute('hotkey', 'E'); | ||
| } | ||
| } | ||
@@ -305,3 +309,4 @@ if (!window.customElements.get('md-code')) { | ||
| if ((event.metaKey && modifierKey === 'Meta') || (event.ctrlKey && modifierKey === 'Control')) { | ||
| const button = findHotkey(toolbar, event.key); | ||
| const key = event.shiftKey ? event.key.toUpperCase() : event.key; | ||
| const button = findHotkey(toolbar, key); | ||
| if (button) { | ||
@@ -308,0 +313,0 @@ button.click(); |
+1
-1
| { | ||
| "name": "@github/markdown-toolbar-element", | ||
| "version": "1.4.0", | ||
| "version": "1.5.0", | ||
| "description": "Markdown formatting buttons for text inputs.", | ||
@@ -5,0 +5,0 @@ "repository": "github/markdown-toolbar-element", |
30169
0.69%686
0.88%