Skip to content

Commit 53b93f2

Browse files
committed
Change code block hotkey from C -> E
1 parent 891f80d commit 53b93f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class MarkdownCodeButtonElement extends MarkdownButtonElement {
184184

185185
connectedCallback() {
186186
super.connectedCallback()
187-
this.setAttribute('hotkey', 'C')
187+
this.setAttribute('hotkey', 'E')
188188
}
189189
}
190190

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ describe('markdown-toolbar-element', function () {
209209
it('does not codeblock selected text when using the lowercased hotkey', function () {
210210
focus()
211211
setVisualValue('The |quick| brown fox jumps over the lazy dog')
212-
pressHotkey('c') // lowercase `c` instead of uppercase `C`
212+
pressHotkey('e') // lowercase `e` instead of uppercase `E`
213213
assert.equal('The |quick| brown fox jumps over the lazy dog', visualValue())
214214
})
215215
})
@@ -629,7 +629,7 @@ describe('markdown-toolbar-element', function () {
629629
it('surrounds a line with backticks via hotkey', function () {
630630
focus()
631631
setVisualValue("|puts 'Hello, world!'|")
632-
pressHotkey('C')
632+
pressHotkey('E')
633633
assert.equal("`|puts 'Hello, world!'|`", visualValue())
634634
})
635635

0 commit comments

Comments
 (0)