Repository navigation
fix(picker): confirm selections with Enter in every key preset - #240
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughPickerList now treats unmodified Return and Enter as open actions, ignoring the keypad modifier for this check. JavaScript tests exercise the shipped picker key handler across four presets and verify key-dispatch and activation behavior. ChangesPicker key handling
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The picker change has no identified merge-blocking issue. Native key delivery and portal round trips remain untested. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
merged as authored; the #225 fix already confirmed Enter in every preset, so its override was folded into that one path and its tests landed (3423347, v0.3.8). Thanks @GreyforgeLabs! https://github.com/thisisgm/flea/releases/tag/v0.3.8 |
With the Mac keyboard preset, Return and keypad Enter resolve to Rename in the portal file chooser and never confirm a checked selection. Give unmodified Enter chooser activation semantics before consulting the listing keymap. KeypadModifier is allowed; other modified bindings retain their existing behavior.
The regression suite executes the shipped key handler, generated preset table and activation function under Qt's JavaScript engine. It covers all four presets, checked-file activation, folder navigation, missing rows, Space, Escape, modified Enter, and Mac Ctrl+Down. The file manager's Mac Enter-to-Rename binding stays intact.
Validation: the new tests reproduce 12 failures before the fix;
./tests/js.sh pickerpasses all 209 checks afterward. The complete./tests/js.shbattery passes (5,690 main checks plus 4 Edmonton and 13 DST checks), as doestools/flea-file-budget. This exercises dispatch and activation, not native input delivery or an end-to-end portal round trip.Fixes #225.
Review note: CodeRabbit's Biome integration could not parse the repository's Qt-specific
.importdirectives. The Qt JavaScript runner above validates these files; Biome did not provide a lint result.Summary by CodeRabbit