diff --git a/README.md b/README.md index f5a0424f..406ebbf9 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ vim.g.firenvim_config.localSettings["https?://[^/]+\\.co\\.uk/"] = { takeover = The `selector` attribute of a localSetting controls what elements Firenvim automatically takes over. Here's the default value: ```lua -vim.g.firenvim_config.localSettings['.*'] = { selector = 'textarea:not([readonly]), div[role="textbox"]' } +vim.g.firenvim_config.localSettings['.*'] = { selector = 'textarea:not([readonly], [aria-readonly]), div[role="textbox"]' } ``` If you don't want to use Firenvim with rich text editors (e.g. Gmail, Outlook, Slackā€¦) as a general rule, you might want to restrict Firenvim to simple textareas: diff --git a/src/utils/configuration.ts b/src/utils/configuration.ts index 11345659..88529f27 100644 --- a/src/utils/configuration.ts +++ b/src/utils/configuration.ts @@ -112,7 +112,7 @@ export function mergeWithDefaults(os: string, settings: any): IConfig { content: "text", priority: 0, renderer: "canvas", - selector: 'textarea:not([readonly]), div[role="textbox"]', + selector: 'textarea:not([readonly], [aria-readonly]), div[role="textbox"]', // "takeover": "always" | "once" | "empty" | "nonempty" | "never" // #265: On "once", don't automatically bring back after :q'ing it takeover: "always",