Skip to content

Commit f34eb14

Browse files
committed
Change code block hotkey from E -> e
1 parent e9a2547 commit f34eb14

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

Diff for: src/index.ts

+1-1
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', 'E')
187+
this.setAttribute('hotkey', 'e')
188188
}
189189
}
190190

Diff for: test/test.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,6 @@ describe('markdown-toolbar-element', function () {
205205
pressHotkey('B') // capital `B` instead of lowercase `b`
206206
assert.equal('The |quick| brown fox jumps over the lazy dog', visualValue())
207207
})
208-
209-
it('does not codeblock selected text when using the lowercased hotkey', function () {
210-
focus()
211-
setVisualValue('The |quick| brown fox jumps over the lazy dog')
212-
pressHotkey('e') // lowercase `e` instead of uppercase `E`
213-
assert.equal('The |quick| brown fox jumps over the lazy dog', visualValue())
214-
})
215208
})
216209

217210
describe('bold', function () {
@@ -629,7 +622,7 @@ describe('markdown-toolbar-element', function () {
629622
it('surrounds a line with backticks via hotkey', function () {
630623
focus()
631624
setVisualValue("|puts 'Hello, world!'|")
632-
pressHotkey('E')
625+
pressHotkey('e')
633626
assert.equal("`|puts 'Hello, world!'|`", visualValue())
634627
})
635628

0 commit comments

Comments
 (0)