Skip to content

A platform for community discussion. Free, open, simple.

FEATURE: Change "Preformatted text" shortcut (#13137)

Jarek Radosz5c3c2b8d311b
diff --git a/app/assets/javascripts/discourse/app/components/d-editor.js b/app/assets/javascripts/discourse/app/components/d-editor.js
index 345777759fd..adcbc6b6d9e 100644
--- a/app/assets/javascripts/discourse/app/components/d-editor.js
+++ b/app/assets/javascripts/discourse/app/components/d-editor.js
@@ -129,7 +129,7 @@ class Toolbar {
this.addButton({
id: "code",
group: "insertions",
- shortcut: "Shift+C",
+ shortcut: "E",
preventFocus: true,
trimLeading: true,
action: (...args) => this.context.send("formatCode", args),