From f34eb1483d128f758456f03263ef64a450bbaa29 Mon Sep 17 00:00:00 2001 From: Aaron Christy Date: Mon, 22 Mar 2021 12:28:40 -0400 Subject: [PATCH] Change code block hotkey from E -> e --- src/index.ts | 2 +- test/test.js | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7cb2d91..bfe885a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -184,7 +184,7 @@ class MarkdownCodeButtonElement extends MarkdownButtonElement { connectedCallback() { super.connectedCallback() - this.setAttribute('hotkey', 'E') + this.setAttribute('hotkey', 'e') } } diff --git a/test/test.js b/test/test.js index bcec88a..1fb986e 100644 --- a/test/test.js +++ b/test/test.js @@ -205,13 +205,6 @@ describe('markdown-toolbar-element', function () { pressHotkey('B') // capital `B` instead of lowercase `b` assert.equal('The |quick| brown fox jumps over the lazy dog', visualValue()) }) - - it('does not codeblock selected text when using the lowercased hotkey', function () { - focus() - setVisualValue('The |quick| brown fox jumps over the lazy dog') - pressHotkey('e') // lowercase `e` instead of uppercase `E` - assert.equal('The |quick| brown fox jumps over the lazy dog', visualValue()) - }) }) describe('bold', function () { @@ -629,7 +622,7 @@ describe('markdown-toolbar-element', function () { it('surrounds a line with backticks via hotkey', function () { focus() setVisualValue("|puts 'Hello, world!'|") - pressHotkey('E') + pressHotkey('e') assert.equal("`|puts 'Hello, world!'|`", visualValue()) })