Sign in to Community
Sign in to view all badges
this.access = "readOnly";
But it appears this only disables the ability to "click" using the mouse. The button is still focusable and enter causes the click event to fire.
Instead of readOnly use protected. This will disable all functions of the button and also exclude it from being focussed on when using the TAB key.
this.access = "protected";