Repository navigation
Taster tab: click a key and press the combination - #109
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Queued for approval, waiting for the checks:
WoggleSL Review · requested by a maintainer from the review board |
There was a problem hiding this comment.
Approved by a maintainer on the review board.
Checks
- ✅ Build linux-x86_64
- ✅ Build windows-x86_64
- ❌ dispatch (not required)
- ❌ wiki (not required)
- ✅ retake screenshots (not required)
- ✅ changes (not required)
- ✅ codeql (actions) (not required)
- ✅ sync (not required)
- ✅ dispatch (not required)
- ✅ wiki (not required)
- ✅ changes (not required)
- ⏳ codeql (rust) (not required)
- ⏳ preview screenshots (not required)
- ✅ screenshots out of date (not required)
- ✅ screenshots out of date (not required)
- ✅ Build macos-universal (not required)
- ✅ secrets (not required)
- ❌ typos (not required)
- ✅ Build flatpak-x86_64 (not required)
- ❌ fmt (not required)
- ✅ Release (not required)
- ✅ clippy (not required)
- ⏳ test (not required)
- ✅ cargo-deny (not required)
- ✅ unsafe (not required)
- ✅ dependency-review (not required)
- ✅ workflows (not required)
- ✅ translations (not required)
- ✅ flag-lists (not required)
- ✅ CodeQL (not required)
Change: 11 files, +1004 / -108, 1 commit(s) by @R3disme
Merges into: main without conflicts
WoggleSL Review · requested by a maintainer from the review board
|
Squash-merged into WoggleSL Review · requested by a maintainer from the review board |
Part of #11
What and why
The Taster tab no longer asks people to type key names. Each action is a row: name, its keys as chips, an X to unbind and a reset arrow that only shows when the row differs from the default. Click a chip and press the combination: modifiers show live while held, Esc cancels, Backspace or Delete clears. A key the config file cannot hold is refused with a message.
One key, one action: every captured combination is checked against the shared registry in
data/src/keybinds.rs. If it is taken the row shows "Brukes allerede av «...» (Taster)" with Bytt (move the key here and unbind the other) or Avbryt, and Save stays disabled while any duplicate or open question exists, including duplicates hand-edited into config.toml. The registry now also covers the message-focus actions and hasowner_for_action,bindings_from_rows,parse_list,split_listandwith_hotkeys, so the hotkey builder can use it as it is. Bare letters, digits and Space warn that they fire while typing. "Tilbakestill alle" needs a second click. Rows that differ from the default carry an "Endret" chip.Unbinding writes
none, a row back at its default drops its line, and a comma can be a key (ctrl+,is a default). Old configs load as before.How it was tested
cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspace(new tests: duplicate within keybinds, across owners, modifier order and case, focus actions, action name round trip, comma keys, bare keys),python3 tools/check_translations.py,python3 tools/check_fmt.py. No GUI was started; the new scenesettings:keyboard-conflictis rendered by CI.Wiki
Wiki: not needed - screenshots are retaken automatically after the redesign
Checklist
mainpython3 tools/build.py) and the CI builds passPRIVACY.mdstill matches what the code sends and storesCTCP WOGGLEhandling still follow the review rules inCONTRIBUTING.md