Skip to content

Implement full key mapping utility for keyboard event handling #1

@gravity-api

Description

@gravity-api

There is a TODO in src/commands/stop-recorder.ts indicating the need to implement a full key mapping utility for keyboard event handling. Currently, there is only temporary handling for the space key, and a more robust solution is required.

Relevant code section:

// TODO: Implement a full key mapping utility.
// Temporary handling for the space key until a full key mapping utility is introduced.
if (key?.match(/^space$/i)) {
    key = ' ';
}

Suggested action:

  • Implement a comprehensive key mapping utility to handle all relevant keyboard keys and edge cases.
  • Replace the temporary handling for the space key with the new utility.

File: src/commands/stop-recorder.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions