Shell 25: fluxer-platform shortcut back-end trait, key tables, fake #817

Closed
opened 2026-11-17 23:02:59 +00:00 by charles · 0 comments
Owner

Task 25 of the Desktop shell plan (docs/superpowers/plans/2026-11-17-desktop-shell.md, section "### Task 25:"). The plan on the shell branch is the source of truth; this copy is for reading.

Closes: — Depends on: 11

Files:

  • Create: crates/fluxer-platform/src/shortcuts/{mod.rs,keys.rs,fake.rs} · Modify: lib.rs, README · Test: crates/fluxer-platform/tests/shortcut_keys.rs

Interfaces:

  • Produces: ShortcutBackend trait { kind(), start(sink) -> Result<(), BackendError::{Permission, StartFailed, Unsupported}>, set_bindings(&[(ShortcutAction, KeyCombo)]) (the portal's only), capture(bool), stop() }; ShortcutSink receiving BackendOutput::{Input(ShortcutInput), Event(ShortcutEvent), Status(BackendStatus), Portal(PortalUpdate)}; FakeBackend (scripted inputs); system_backend(kind) -> Option<Box<dyn ShortcutBackend>>.

  • keys: DOM code ↔ evdev code, X11 keycode (evdev + 8), Windows scan code (+0xE000 extended) and virtual key; layout_key; mouse button numbering (D/GlobalShortcutKeys.ts:559-616, N/linux-evdev/src/keymap.rs, N/linux-input-hook/src/{keymap.rs,mouse.rs}, N/windows-input-hook/src/{keymap.rs,windows_mouse.rs}, IPC/GlobalShortcutKeyNames.ts); XDG trigger strings for the portal's preferred trigger (D/GlobalShortcutKeys.ts:642-719).

  • Step 1: failing tests: every_dom_code_round_trips_per_table, extended_scan_codes, mouse_buttons_3_and_4, layout_key_only_for_printables, xdg_trigger_strings (vectors from the fork's own tests if it has them), no_trigger_for_mouse_or_modifier_only, fake_backend_scripts.

  • Step 2–5: FAIL → implement → PASS → commit feat(platform): shortcut back-end trait and key tables.

Task 25 of the Desktop shell plan (`docs/superpowers/plans/2026-11-17-desktop-shell.md`, section "### Task 25:"). The plan on the `shell` branch is the source of truth; this copy is for reading. **Closes:** — **Depends on:** 11 **Files:** - Create: `crates/fluxer-platform/src/shortcuts/{mod.rs,keys.rs,fake.rs}` · Modify: `lib.rs`, README · Test: `crates/fluxer-platform/tests/shortcut_keys.rs` **Interfaces:** - Produces: `ShortcutBackend` trait `{ kind(), start(sink) -> Result<(), BackendError::{Permission, StartFailed, Unsupported}>, set_bindings(&[(ShortcutAction, KeyCombo)]) (the portal's only), capture(bool), stop() }`; `ShortcutSink` receiving `BackendOutput::{Input(ShortcutInput), Event(ShortcutEvent), Status(BackendStatus), Portal(PortalUpdate)}`; `FakeBackend` (scripted inputs); `system_backend(kind) -> Option<Box<dyn ShortcutBackend>>`. - `keys`: DOM `code` ↔ evdev code, X11 keycode (evdev + 8), Windows scan code (+0xE000 extended) and virtual key; `layout_key`; mouse button numbering (`D/GlobalShortcutKeys.ts:559-616`, `N/linux-evdev/src/keymap.rs`, `N/linux-input-hook/src/{keymap.rs,mouse.rs}`, `N/windows-input-hook/src/{keymap.rs,windows_mouse.rs}`, `IPC/GlobalShortcutKeyNames.ts`); XDG trigger strings for the portal's preferred trigger (`D/GlobalShortcutKeys.ts:642-719`). - [ ] **Step 1: failing tests**: `every_dom_code_round_trips_per_table`, `extended_scan_codes`, `mouse_buttons_3_and_4`, `layout_key_only_for_printables`, `xdg_trigger_strings` (vectors from the fork's own tests if it has them), `no_trigger_for_mouse_or_modifier_only`, `fake_backend_scripts`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(platform): shortcut back-end trait and key tables`.
charles added this to the Desktop shell milestone 2026-11-17 23:02:59 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#817
No description provided.