# Making ‘previous/next topic’ keyboard shortcuts into a theme component

**URL:** <https://meta.discourse.org/t/making-previous-next-topic-keyboard-shortcuts-into-a-theme-component/287314>\
**Category:** Development\
**Created:** [December 2, 2023, 9:27pm UTC](https://meta.discourse.org/t/making-previous-next-topic-keyboard-shortcuts-into-a-theme-component/287314 "2023-12-02T21:27:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [December 3, 2023, 8:11am UTC](https://meta.discourse.org/t/making-previous-next-topic-keyboard-shortcuts-into-a-theme-component/287314/4 "2023-12-03T08:11:06Z")

</div>

You probably don’t want to create a separate component for the back button and handle all of the logic in the same component. Just extend the existing template and js file as needed. Otherwise you will likely end up with three templates instead of one which would seem excessive for such a small “component”?

---

_[View the full topic](https://meta.discourse.org/t/making-previous-next-topic-keyboard-shortcuts-into-a-theme-component/287314)._
