Skip to content

Commit f6772c1

Browse files
committed
Add new keyboard shortcut for quotes
1 parent 731b52a commit f6772c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ class MarkdownQuoteButtonElement extends MarkdownButtonElement {
169169
super()
170170
styles.set(this, {prefix: '> ', multiline: true, surroundWithNewlines: true})
171171
}
172+
173+
connectedCallback() {
174+
super.connectedCallback()
175+
this.setAttribute('hotkey', '.')
176+
}
172177
}
173178

174179
if (!window.customElements.get('md-quote')) {

0 commit comments

Comments
 (0)