Hiding Menu Bar in Client Causes Unexpected Behavior

v7.9.12. I have a text entry box that accepts barcode entry and runs scripts accordingly. If I hide the menu bar in project properties this function no longer works. It takes about 2-3 seconds for the barcode to show up in the text entry box, but even when it does show up, the script does not execute. If I click outside the component to lose focus, then the code runs. If I unhide the menu bar, everything works normally.