Repository navigation
Paste Special: every option has its Excel access key (fixes #1482) - #3240
Conversation
Paste Special only knew the letters F, V, T, C and E. Excel gives every option one: A (All), N (Validation), X (All except borders), W (Column widths), R (Formulas and number formats), U (Values and number formats); O, D, S, M, I for the operations; B for Skip blanks; and L for the Paste Link button, which pastes at once. One table now maps each letter to what it does; Enter still pastes with the chosen options. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Merged — thank you @hectorviov for the contribution! |
Fixes #1482
What
GridCraft's Paste Special dialog knew only five letter shortcuts: F, V, T, C and E. Excel has an access key for every option.
crates/ui-egui/src/dialogs/paste.rsnow has one table that maps each letter to what it does:Enter still pastes with the chosen options. The rules for when a letter counts are unchanged: no Ctrl/Cmd, not while a text box has focus, and AltGr / Option keep typing characters.
Comparison
The Excel letters are the ones in the issue's screenshot of the Windows dialog, plus A (All) and O (None), which Excel underlines too. Excel for Mac's Paste Special has no access keys, so I couldn't observe them there.
Tests
paste_special_dialog::every_option_has_its_excel_access_key(ui-egui, real key events): each new letter sets its option, B toggles twice, then V and Enter pastes the values multiplied, and L pastes a link at once. It fails on main at the first new key (N).cargo xtask cipasses.Anything a reviewer should look at first
docs/ui-parity.mdgets a change note and a revision row.🤖 Generated with Claude Code
Summary by CodeRabbit