WaylandKeybinds: localized info panel with setup steps

- Info panel in the plugin modal: live status with the number of keybinds
  GNOME registered, the three setup steps and a button that opens
  Discord's Keybinds page (closes only the plugin modal, which otherwise
  blocks settings navigation).
- Follows Discord's language: English, Portuguese (pt-BR) and Spanish
  (es-ES and es-419 use each region's action names); bold labels quote
  Discord's own strings.
- Shared helpers moved to discord.ts; copy and locale choice in copy.ts,
  covered by basis-path tests (41 tests).
- README: current settings path (User Settings > System > Keybinds).
This commit is contained in:
Evandro Fonseca Junior committed 2026-11-02 01:24:50 -03:00
1 parent a3a9149184
commit 34b61e2509
7 files changed
+351 -18

No files matched your search

+2 -2
View File
@@ -39,14 +39,14 @@ pnpm build
pnpm inject
```
Restart Discord. The plugin is on by default; you can find it as **WaylandKeybinds** in Vencord's plugin list.
Restart Discord. The plugin is on by default; you can find it as **WaylandKeybinds** in Vencord's plugin list. Its info panel shows whether the fix is active, how many keybinds GNOME has registered, and a button that opens Discord's Keybinds page.
> [!IMPORTANT]
> Keep the folder name `waylandKeybinds.discordDesktop`. The suffix limits the plugin to the Discord desktop app, the only place where Discord's native keybind module exists.
## Use
1. Open Discord **User Settings → Keybinds → Add a Keybind**.
1. Open Discord **User Settings → System → Keybinds** and click **Add a Keybind**.
2. Pick an action (Toggle Mute, Toggle Deafen, Push to Talk…) and press your combination.
3. GNOME asks once to allow the shortcut. Click **Add**.