A platform for community discussion. Free, open, simple.
DEV: Remove unused keydown handler (#38301)
Jarek Radoszf21e3eb53534
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-thread.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-thread.gjsindex aaf9a70cf5f..db0e5b3ddf2 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-thread.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-thread.gjs@@ -51,7 +51,6 @@ export default class ChatThread extends Component {@service chatThreadPane;@service dialog;@service currentUser;- @service router;@service siteSettings;@tracked atBottom = true;@@ -88,16 +87,6 @@ export default class ChatThread extends Component {return this.args.thread?.id ? `thread:${this.args.thread.id}` : null;}- @action- handleKeydown(event) {- if (event.key === "Escape") {- return this.router.transitionTo(- "chat.channel",- ...this.args.thread.channel.routeModels- );- }- }-@actionsetup(element) {this.uploadDropZone = element;