Skip to content

Support Gmail expand-all keyboard shortcut - #226

Merged
esokullu merged 2 commits into
mainfrom
codex/press-keys-semicolon
Aug 3, 2026
Merged

Support Gmail expand-all keyboard shortcut#226
esokullu merged 2 commits into
mainfrom
codex/press-keys-semicolon

Conversation

@esokullu

@esokullu esokullu commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • allow press_keys to dispatch the unmodified ; key in Chrome and Firefox
  • send trusted CDP semicolon metadata in Chrome and mirror key metadata in content-script fallbacks
  • require CLICK permission for the page shortcut while keeping press_keys unavailable in Ask mode
  • cover the schema, permission gate, trusted dispatch, and browser fixture behavior

Why

The Gmail adapter recommends ; when the top-level Expand all control is unavailable, but press_keys previously rejected that key before dispatch.

Impact

Gmail's adapter fallback can now expand a full conversation in Act mode. Ask mode remains read-only.

Validation

  • npm run test:fixtures — 127 passed, 0 failed
  • npm run test:security — 60/60 passed
  • node test/run.js — 1431 passed; one pre-existing release-history mismatch remains on main (package.json 26.0.9 vs newest CHANGELOG.md entry 26.0.0)
  • git diff --check

@esokullu
esokullu marked this pull request as ready for review August 3, 2026 14:06

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a788a756b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/firefox/src/content/content.js Outdated
ArrowUp: { code: 'ArrowUp', keyCode: 38 },
ArrowRight: { code: 'ArrowRight', keyCode: 39 },
ArrowDown: { code: 'ArrowDown', keyCode: 40 },
';': { code: 'Semicolon', keyCode: 186 },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use Firefox-compatible semicolon metadata

On actual Firefox, the legacy key code for the semicolon key is 59 rather than Chromium's 186, and Firefox may ignore the non-standard keyCode member passed to the KeyboardEvent constructor. Consequently, Gmail or another shortcut handler that uses the legacy key code will not recognize this newly advertised Firefox shortcut. The added fixture does not validate Firefox behavior because test/fixtures/run.mjs launches Chromium once and merely injects each browser's content-script source into it; exercise this path in Firefox and initialize metadata compatible with that browser.

Useful? React with 👍 / 👎.

@esokullu

esokullu commented Aug 3, 2026

Copy link
Copy Markdown
Owner Author

@codex pls review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: eae6b5020d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@esokullu
esokullu merged commit f154a81 into main Aug 3, 2026
5 checks passed
@esokullu
esokullu deleted the codex/press-keys-semicolon branch August 3, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant