Skip to content

fix(hotkeys): add toggle_telegram default, support modifier combos, and fix remapping #75

Done

Description

@mlgitdev

Description

Multiple defects affect keyboard shortcut configuration and execution:

  1. toggle_telegram is missing from DEFAULT_HOTKEYS (app/config.py:129-142) and DEFAULTS (web/js/settings.js:500-513). Focusing and blurring the toggle_telegram input in Settings -> Hotkeys writes literal "undefined" into the input (settings.js:596).
  2. initHotkeys() (web/js/app.js:510) returns immediately whenever ctrlKey/altKey/metaKey is held and the recorder ignores modifiers, making documented shortcuts like Ctrl+Shift+T impossible.
  3. web/js/app.js:525,603,639 and web/js/tape.js:81 hardcode || e.key === " ", || e.key === "Enter", and || e.key === "Escape", causing original keys to keep firing even after remapping.

References: app/config.py:129-142, web/js/app.js:508-646, web/js/settings.js:500-615, web/js/tape.js:75-86

Steps to Reproduce

  1. Open Settings -> Hotkeys, click the Toggle Telegram Alerts shortcut box, then click outside -> box shows undefined.
  2. Press Ctrl+Shift+T on the main window -> Telegram toggle is ignored.
  3. Remap pause_tape to P, save, and press Space -> Tape still pauses.

Expected Behavior

Include toggle_telegram in default hotkeys (e.g. Ctrl+Shift+T), support recording and matching modifier combinations (Ctrl+, Alt+, Shift+), fix onblur fallback to "", and respect remapped keys without hardcoded Space/Enter/Escape bypasses.

Operating System & Version

  • OS: Windows 11 x64 / macOS arm64 / Linux x86_64
  • Version: v2.12.0
  • Display / Scale: Verified via live Chrome CDP (1600x960) & local unit/backend suite

Logs & Additional Context

Live Chrome CDP verified valAfterBlur: 'undefined' and Ctrl+Shift+T ignored.

Activity

  1. added
    bug
    on Dec 2, 2026
  2. self-assigned this
    on Dec 2, 2026
  3. github-actions commented on Dec 2, 2026

    @github-actions

    ✅ Issue Validation Passed

    • Conventional Commit title syntax (fix(hotkeys))
    • Verified issue type: BUG
    • Required template sections present and filled out

    This issue is well-structured and ready for work according to the Issue-First Protocol.

  4. mlgitdev commented on Dec 2, 2026

    @mlgitdev
    OwnerAuthor

    🚀 Resolution In Progress

    A fix for this issue has been implemented and submitted in Pull Request #82 (v2.12.1).

    • Branch: fix/audit-remediation-67
    • PR URL: fix(core): resolve 15 verified audit issues across UI, API, concurrency, audio, and packaging (v2.12.1) #82
    • Summary of Changes: Added toggle_telegram: 'Ctrl+Shift+T' to DEFAULT_HOTKEYS (app/config.py) and web/js/settings.js, fixed onblur 'undefined' bug, implemented full modifier-combo recording & matching in web/js/app.js and web/js/tape.js, and removed hardcoded Space/Enter/Escape bypasses. Verified live in Chrome CDP.
    • Verification: compileall clean, 84/84 unit tests passing (including tests/test_audit_fixes.py), and live Chrome CDP verification passed.

    This issue will automatically close upon PR #82 review and merge into main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions