Skip to content

Commit 40b95c5

Browse files
authored
Merge pull request #38 from github/td/lowercase-code-block-hotkey
Change code block hotkey from E -> e
2 parents e9a2547 + f34eb14 commit 40b95c5

File tree

2 files changed

+2
-9
lines changed

2 files changed

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

test/test.js

Lines changed: 1 addition & 8 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy