Skip to content

Taster tab: click a key and press the combination - #109

Merged
wogglesl-review[bot] merged 1 commit into
mainfrom
keybinds-tab
Dec 3, 2026
Merged

wogglesl-review[bot] merged 1 commit into
mainfrom
keybinds-tab

Conversation

@R3disme

@R3disme R3disme commented Dec 3, 2026

Copy link
Copy Markdown
Member

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 has owner_for_action, bindings_from_rows, parse_list, split_list and with_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 scene settings:keyboard-conflict is rendered by CI.

Wiki

Wiki: not needed - screenshots are retaken automatically after the redesign

Checklist

  • One change only, branched from the latest main
  • Builds locally (python3 tools/build.py) and the CI builds pass
  • Tested on the local test server only
  • New interface text exists in no, da, sv and en
  • PRIVACY.md still matches what the code sends and stores
  • Bans, kicks, unbans and CTCP WOGGLE handling still follow the review rules in CONTRIBUTING.md
  • New flag entries have a meaning, the right severity and no false positives on ordinary words
  • Generated files were regenerated, not edited by hand
  • No real ScoutLink data (chat logs, nicks, hostnames, screenshots of real channels)

@R3disme
R3disme requested review from a team as code owners December 3, 2026 14:27
@R3disme R3disme added the In-Review Finished and waiting for a maintainer's review label Dec 3, 2026
Copilot AI balanced review requested due to automatic review settings December 3, 2026 14:27

Copilot AI 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.

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.

@wogglesl-review

Copy link
Copy Markdown

Queued for approval, waiting for the 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)
  • ✅ 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)

WoggleSL Review · requested by a maintainer from the review board

@wogglesl-review wogglesl-review 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.

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

@wogglesl-review
wogglesl-review Bot merged commit 750e621 into main Dec 3, 2026
25 of 30 checks passed
@wogglesl-review

Copy link
Copy Markdown

Squash-merged into main as 750e621.

WoggleSL Review · requested by a maintainer from the review board

@wogglesl-review
wogglesl-review Bot deleted the keybinds-tab branch December 3, 2026 14:33
@wogglesl-review wogglesl-review Bot removed the In-Review Finished and waiting for a maintainer's review label Dec 3, 2026
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.

2 participants