How to disable the spacebar
Would appreciate any help in this matter.
Unfortunately, it seems to be some OS-default setting for those default widgets (buttons, checkboxes etc.) and I didn't find a way of disabling or catching it inside WinCC OA (for example, with event mapping into "Clicked").
But there is a very dirty workaround to disable spacebar on your panel. Just place an invisible button with some dummy code into "Clicked" event and configure "Hotkey" property of that button to Space. Thus, every spacebar press will envoke that dummy button.
This approach is not really nice since you need to run through all your panels/references with possible command elements but it's working
Also, mind the default OA messages and confirm dialogs, you might need to change those as well. For some reason, focus on those messages is placed on "Yes" command.
In case your application has a fixed part you could place the 'space' hotkey button on this panel, then you should not need to go through all your panels.