Community

Question: How to disable keyboard operation for buttons in older *.pnl files

31.08.2026 13:34 by Mulder, Frenk (YU TIS NL SE SD)

We have an older project with *.pnl file holding buttons. Customer has found out that he can use <tab> and <space> to activate a button. They prefer that only the mouse can be used. Does anyone know a config entry that would allow to disable the tab/space keyboard usage ?

Thanks

Frenk

Responses (2)

31.08.2026 16:36 by Dennis Bindernagel

Hi,
i do not know of an config entry but you can use the property "focusPolicy" of the button and set it to "NoFocus". This way the button cannot get focus and therefore the space/enter buttons do not work for this button. Pressing the button with the mouse still works fine.
https://www.winccoa.com/documentation/WinCCOA/3.19/en_US/Control_Grafik/focusPolicy.html

Of course this does not help if your problem is more about having many existing panels and you do not want to change them all.

Still hope it helps.

02.09.2026 08:33 by Mulder, Frenk (YU TIS NL SE SD)

Thx. The 'issue' is that these are *.pnl files so there is no easy way to do a search and replace. I will advise them to convert to XML and then do a search-replace

Log in to write a response to this question.
Back to list