Skip to content

Fix Modifiers::shift_only returning true when ctrl is held - #8675

Draft
drakeo338 wants to merge 1 commit into
emilk:mainfrom
drakeo338:claude/8674-fix
Draft

drakeo338 wants to merge 1 commit into
emilk:mainfrom
drakeo338:claude/8674-fix

Conversation

@drakeo338

Copy link
Copy Markdown

Modifiers::shift_only only excluded alt and command, so on non-Mac platforms where ctrl and command can differ (e.g. Ctrl+Shift with command unset) it returned true. It now also excludes ctrl and mac_cmd, and a unit test covers the combinations.

Ran cargo test -p egui --lib shift_only (passes; the new test fails without the fix). Did not run cargo clippy or the full CI.

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Preview is being built...

Preview will be available at https://egui-pr-preview.github.io/pr/8675-claude/8674-fix

View snapshot changes at kitdiff

This branch has not been deployed

No deployments
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.

Modifiers::shift_only ignores ctrl, so on macOS Ctrl+Shift+Tab moves focus like Shift+Tab

1 participant