# Add a keyboard shortcut to close the application

**URL:** <https://discourse.slicer.org/t/add-a-keyboard-shortcut-to-close-the-application/42615>\
**Category:** Feature requests\
**Created:** [April 18, 2025, 3:13pm UTC](https://discourse.slicer.org/t/add-a-keyboard-shortcut-to-close-the-application/42615 "2025-04-18T15:13:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [April 18, 2025, 3:13pm UTC](https://discourse.slicer.org/t/add-a-keyboard-shortcut-to-close-the-application/42615/1 "2025-04-18T15:13:09Z")

</div>

Many applications can be closed by the “CTRL + Q” keyboard shortcut. This combination does not seem to be used in Slicer. I am aware that custom keyboard shortcuts can be assigned, just wondering if it could be built-in.

Thank you.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [April 18, 2025, 6:02pm UTC](https://discourse.slicer.org/t/add-a-keyboard-shortcut-to-close-the-application/42615/2 "2025-04-18T18:02:56Z")

</div>

On mac, Cmd-Q can be used to quit Slicer.

On windows, and I think on most if not all linux machines, you should be able to do Alt-F then x. Alt-F brings up the file menu with the x underlined (this is a pretty general pattern for using menus on non-mac systems). Adding Control-Q would be okay, but maybe redundant.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [April 18, 2025, 6:39pm UTC](https://discourse.slicer.org/t/add-a-keyboard-shortcut-to-close-the-application/42615/3 "2025-04-18T18:39:16Z")

</div>

ALT+F and x is simple enough on Linux, thank you 😄

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 19, 2025, 12:48pm UTC](https://discourse.slicer.org/t/add-a-keyboard-shortcut-to-close-the-application/42615/4 "2025-04-19T12:48:10Z")

</div>

We use standard Qt shortcuts - [QKeySequence Class | Qt GUI | Qt 6.9.0](https://doc.qt.io/qt-6/qkeysequence.html#standard-shortcuts)  
According to the table, Ctrl-Q should work on Linux (at least with KDE and Plasma). If you have a debug-mode build and installed Qt debug symbols then you can debug into why Ctrl-Q is not working or what other shortcut is assigned to the `Quit` action.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [April 19, 2025, 6:24pm UTC](https://discourse.slicer.org/t/add-a-keyboard-shortcut-to-close-the-application/42615/5 "2025-04-19T18:24:32Z")

</div>

> [@lassoan](#):
>
> and installed Qt debug symbols

I’ll investigate that ASAP, thank you.
