# Caps lock bug

**URL:** <https://molflow-forum.web.cern.ch/t/caps-lock-bug/137>\
**Category:** Bugs & Issues\
**Created:** [February 5, 2016, 1:28pm UTC](https://molflow-forum.web.cern.ch/t/caps-lock-bug/137 "2016-02-05T13:28:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![17548314395f0ecac8ea](https://molflow-forum.web.cern.ch/letter_avatar_proxy/v4/letter/1/e9a140/32.png) [@17548314395f0ecac8ea](https://molflow-forum.web.cern.ch/u/17548314395f0ecac8ea)\
**Post date:** [February 5, 2016, 1:28pm UTC](https://molflow-forum.web.cern.ch/t/caps-lock-bug/137/1 "2016-02-05T13:28:20Z")

</div>

The facet selection lock in&nbsp;Molflow+ 2.5.6 (Running in win 7 SP1) does not seem to check whether caps lock is on or off, but instead when&nbsp;the key is&nbsp;pressed.

Turning on caps lock outside of the molflow window will not turn on the facet selection lock in molflow. You can then select the molflow window and turn off caps lock. Caps will be off but&nbsp;molflow will now think&nbsp;caps lock is on.

&nbsp;

---

<div class="post-metadata">

**Author:** ![maarton](https://molflow-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@maarton](https://molflow-forum.web.cern.ch/u/maarton)\
**Post date:** [February 5, 2016, 2:10pm UTC](https://molflow-forum.web.cern.ch/t/caps-lock-bug/137/2 "2016-02-05T14:10:18Z")

</div>

Nice find!&nbsp;Unfortunately&nbsp;I won't be able to fix it.

Molflow uses the SDL framework which apparently cannot capture keyboard events when its window is not in focus.&nbsp;[This forum post](http://forums.libsdl.org/viewtopic.php?t=6144&sid=44cd2f9d8fa0305546406887d9f04509) proposed a solution that I tried (mentioning that it might not work in Wondowed environments), but the result is the same.

So as I can't override the graphical framework, when CAPS LOCK gets "out of sync" please turn it on/off outside Molflow to sync it back.
