Skip to content

Commit

Permalink
Change code block hotkey from C -> E
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-tdouble committed Mar 19, 2021
1 parent 891f80d commit 53b93f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class MarkdownCodeButtonElement extends MarkdownButtonElement {

connectedCallback() {
super.connectedCallback()
this.setAttribute('hotkey', 'C')
this.setAttribute('hotkey', 'E')
}
}

Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ describe('markdown-toolbar-element', function () {
it('does not codeblock selected text when using the lowercased hotkey', function () {
focus()
setVisualValue('The |quick| brown fox jumps over the lazy dog')
pressHotkey('c') // lowercase `c` instead of uppercase `C`
pressHotkey('e') // lowercase `e` instead of uppercase `E`
assert.equal('The |quick| brown fox jumps over the lazy dog', visualValue())
})
})
Expand Down Expand Up @@ -629,7 +629,7 @@ describe('markdown-toolbar-element', function () {
it('surrounds a line with backticks via hotkey', function () {
focus()
setVisualValue("|puts 'Hello, world!'|")
pressHotkey('C')
pressHotkey('E')
assert.equal("`|puts 'Hello, world!'|`", visualValue())
})

Expand Down

0 comments on commit 53b93f2

Please sign in to comment.