Skip to content

Commit 20cf53b

Browse files
committed
Add shortcut for ordered lists
1 parent d4e6f15 commit 20cf53b

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
@@ -249,6 +249,11 @@ class MarkdownOrderedListButtonElement extends MarkdownButtonElement {
249249
super()
250250
styles.set(this, {prefix: '1. ', multiline: true, orderedList: true})
251251
}
252+
connectedCallback() {
253+
super.connectedCallback()
254+
this.setAttribute('hotkey', '9')
255+
this.setAttribute('hotkey-requires-shift', 'true')
256+
}
252257
}
253258

254259
if (!window.customElements.get('md-ordered-list')) {

0 commit comments

Comments
 (0)