Skip to content

Commit

Permalink
Exclude 'aria-readonly' in localSettings selector
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisquintero committed Aug 12, 2023
1 parent 2a709e2 commit ca5805c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/utils/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ca5805c

Please sign in to comment.