Skip to content

Add keyboard shortcuts for common actions #7

Description

@jeanclawd

Problem

Every action in Scikit-Learner today requires a mouse click. Power users (and demos) suffer.

Proposal

Bind keyboard shortcuts for the most-used actions:

Shortcut Action
`Ctrl/Cmd + T` Train Selected
`Ctrl/Cmd + A` Train All
`Ctrl/Cmd + E` Export (modal)
`Ctrl/Cmd + U` Upload CSV
`?` Show shortcut help

Implementation notes

  • Single `keydown` listener at the document level in `frontend/js/app.js`.
  • Skip when the focus is in a text input (`document.activeElement.tagName === 'INPUT' || 'TEXTAREA'`).
  • A small "?" badge in the footer or top bar that opens a modal listing the shortcuts.

Acceptance criteria

  • Each shortcut triggers the corresponding action.
  • Shortcuts do not fire when typing in an input field.
  • A discoverability hint (modal or tooltip) is visible from the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions