From 1dadabcc00fc9759438314add0d727a5ddff1b0c Mon Sep 17 00:00:00 2001 From: MatiasStorm Date: Tue, 12 May 2020 16:24:09 +0200 Subject: Added elements with the 'onclick' attribute to allowed hints --- src/content/presenters/Hint.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/content/presenters/Hint.ts') diff --git a/src/content/presenters/Hint.ts b/src/content/presenters/Hint.ts index 3f39060..8bf265b 100644 --- a/src/content/presenters/Hint.ts +++ b/src/content/presenters/Hint.ts @@ -119,7 +119,10 @@ export class InputHint extends Hint { default: if (doms.isContentEditable(target)) { return target.focus(); - } else if (target.hasAttribute("tabindex")) { + } else if ( + target.hasAttribute("tabindex") || + target.hasAttribute("onclick") + ) { return target.click(); } } -- cgit v1.2.3