Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change code block hotkey from E -> e #38

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

aaron-tdouble
Copy link
Contributor

Description

After some further discussion, design would like to change the hotkey to be lowercase to match the other shortcuts in use.

So, this PR:

  • changes code hotkey from cmd-shift-e to cmd-e (in other words, uppercase E to lowercase e)

Issue

References: https://github.com/github/special-projects/issues/135

Screenshots

Keycastr was acting up on me here, but I was pressing ⌘+e:

Screen Cast 2021-03-22 at 12 30 44 PM

Risk Assessment

Low risk

Copy link
Contributor

@koddsson koddsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Comment on lines -209 to -214
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())
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is now covered by the casing tests that you added in #37?

Copy link
Member

@keithamus keithamus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@keithamus keithamus merged commit 40b95c5 into main Mar 23, 2021
@keithamus keithamus deleted the td/lowercase-code-block-hotkey branch March 23, 2021 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants