|
|
@ -5,7 +5,7 @@ import * as dom from 'shared/utils/dom'; |
|
|
|
const TARGET_SELECTOR = [ |
|
|
|
const TARGET_SELECTOR = [ |
|
|
|
'a', 'button', 'input', 'textarea', 'area', |
|
|
|
'a', 'button', 'input', 'textarea', 'area', |
|
|
|
'[contenteditable=true]', '[contenteditable=""]', '[tabindex]', |
|
|
|
'[contenteditable=true]', '[contenteditable=""]', '[tabindex]', |
|
|
|
'[role="button"]' |
|
|
|
'[role="button"]', 'summary' |
|
|
|
].join(','); |
|
|
|
].join(','); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -155,6 +155,7 @@ export default class Follow { |
|
|
|
case 'textarea': |
|
|
|
case 'textarea': |
|
|
|
return element.focus(); |
|
|
|
return element.focus(); |
|
|
|
case 'button': |
|
|
|
case 'button': |
|
|
|
|
|
|
|
case 'summary': |
|
|
|
return element.click(); |
|
|
|
return element.click(); |
|
|
|
default: |
|
|
|
default: |
|
|
|
if (dom.isContentEditable(element)) { |
|
|
|
if (dom.isContentEditable(element)) { |
|
|
|