# Category not preselected in composer when creating topic with shortcut key 'c'

**URL:** https://meta.discourse.org/t/category-not-preselected-in-composer-when-creating-topic-with-shortcut-key-c/106036
**Category:** Bug
**Created:** [January 9, 2019, 8:47am UTC](https://meta.discourse.org/t/category-not-preselected-in-composer-when-creating-topic-with-shortcut-key-c/106036 "2019-01-09T08:47:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [January 9, 2019, 8:47am UTC](https://meta.discourse.org/t/category-not-preselected-in-composer-when-creating-topic-with-shortcut-key-c/106036/1 "2019-01-09T08:47:08Z")

</div>

I just verified on two Discourse instances that Topic Templates work only when you click the ‘New Topic’ button, but not when you hit the `c` key.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 9, 2019, 12:04pm UTC](https://meta.discourse.org/t/category-not-preselected-in-composer-when-creating-topic-with-shortcut-key-c/106036/2 "2019-01-09T12:04:57Z")

</div>

I recall this being a bug earlier in the lifecycle of Discourse.

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [January 9, 2019, 12:06pm UTC](https://meta.discourse.org/t/category-not-preselected-in-composer-when-creating-topic-with-shortcut-key-c/106036/3 "2019-01-09T12:06:42Z")

</div>

I’m not on the latest build (out of fear of the image rebaking option), and our company’s blog is also older. These are the versions that I observed this on:

- 2.2.0.beta6 - version 0884cd218d30d365aa3e8c5f0071e9341ecf9360
- 2.0.0.beta1 - version d2025e33cfa1efe23328222fccee9e8f83986a64

Hope that helps.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [January 9, 2019, 3:59pm UTC](https://meta.discourse.org/t/category-not-preselected-in-composer-when-creating-topic-with-shortcut-key-c/106036/4 "2019-01-09T15:59:20Z")

</div>

I just tested this on try. Here’s what I found:

- I added a topic template to the `discourse` category.
- I navigated to the discourse category [https://try.discourse.org/c/discourse](https://try.discourse.org/c/discourse).
- I clicked the “New Topic” button.
  - The composer opened with the discourse cateogry pre-selected. As such, the topic template was displayed.

- I closed the composer.
- I then clicked c on my keyboard.
  - The composer opened without any category pre-selected. As such, no topic template was displayed.

* * *

From what I can tell the issue is not about topic templates, but that the keyboard shortcut does not open the composer to the correct category.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [January 24, 2019, 6:22pm UTC](https://meta.discourse.org/t/category-not-preselected-in-composer-when-creating-topic-with-shortcut-key-c/106036/6 "2019-01-24T18:22:16Z")

</div>

[https://github.com/discourse/discourse/commit/a518950e524d482bec0b1201276450f7aaa8725a](https://github.com/discourse/discourse/commit/a518950e524d482bec0b1201276450f7aaa8725a)

This should fix it up!

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [January 24, 2019, 6:22pm UTC](https://meta.discourse.org/t/category-not-preselected-in-composer-when-creating-topic-with-shortcut-key-c/106036/7 "2019-01-24T18:22:21Z")

</div>


