(helper)
| 5 | const EDITING_KEYS = new Set(['a', 'c', 'x', 'v', 'z', 'y']) |
| 6 | |
| 7 | async function isNoElementFocused(helper) { |
| 8 | return helper.executeScript(() => { |
| 9 | const ae = document.activeElement |
| 10 | return !ae || ae === document.documentElement || (ae === document.body && !ae.isContentEditable) |
| 11 | }) |
| 12 | } |
| 13 | |
| 14 | export async function checkFocusBeforeType(helper) { |
| 15 | if (!helper.options.strict && !store.debugMode) return |
no test coverage detected