Community
Question: How to disable keyboard operation for buttons in older *.pnl files
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)
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.
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