Changed autoblurring to only affect selection popups

This commit is contained in:
Erik Thuning 2023-01-20 14:44:40 +01:00
parent 5da12d47f8
commit fb659bda2a

@ -1201,18 +1201,11 @@
}
/*
* Set clickables to lose focus immediately on click.
*
* Has no effect on non-click interactions such as tab navigation.
*
* Currently disabled due to intereference with keyboard activation
* of elements.
* Set selection popups to lose focus immediately on click.
*/
autoBlurControls() {
return;
const blurrables = this.shadowRoot.querySelectorAll(
'button, input, video');
'.select button');
blurrables.forEach((candidate) => {
if(candidate.autoblur === undefined) {
candidate.addEventListener('click', (event) => {