microsoft / microsoft/tabster

Add possibility to register custom callback when key events occur in tabster

Open
#326 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
165
Forks
42
Avg merge
1d 11h
Merged PRs (30d)
9

Description

Feture request

There are scenarios when the developer wants to complement or override key events handled by tabster (such as Right arrow key press) using a custom code that is executed only under some circumstances, such as when the keyboard focus is on some specific element. This need can be resolved by introducing the possibility to register a custom callback for the key events which are handled by tabster. Then, running event.preventDefault() in such callback can block the execution of the default tabster handler.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how Tabster handles key events such as the Right arrow and identify the public surface where a custom callback could be registered. Define how callbacks receive the event and how preventDefault() affects the default handler, then add coverage for conditional handling and blocked default behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
accessibility, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.