scratchfoundation / scratchfoundation/scratch-blocks

Make field input focus and numpad visibility depend on how the field was clicked

Open
#1,957 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement touch
Dominant language
JavaScript
Stars
2.8k
Forks
1.6k
Avg merge
4h 51m
Merged PRs (30d)
12

Description

Right now we use user agent matching to find android/iOS and use that to determine (a) whether to show the numpad or not and (b) whether to focus the fields who have editors that use html inputs (in order to prevent the onscreen keyboard from appearing).

We should move to somehow detecting whether the field click came from a mouse or a touch, and use that information to show the number pad and prevent field focus.

/cc @picklesrus this is the issue we were discussing the best way to approach.

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 the existing user-agent matching that controls numpad visibility and focus for fields with HTML-input editors. Determine where field clicks are handled and how mouse versus touch can be distinguished; done means numpad visibility and field focus follow the click input method rather than Android/iOS detection.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.