scratchfoundation / scratchfoundation/scratch-blocks

Keyboard number input disabled on touchscreen chromebook

Open
#1,933 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Expected Behavior

When entering a number input on a chromebook with a touchscreen it should be possible to type numbers on the keyboard, or select numbers on the numberpad.

Actual Behavior

Regardless of whether the input is selected by touching the screen or clicking on the touchpad the soft numberpad appears. At that point you can only enter numbers with the numberpad, not on the keyboard. There's also a missing asset (backspace).
Screenshot 2019-04-26 at 1 51 26 PM

Note - the numberpad does NOT appear on an actual android tablet. It's just in the native android app on a chromebook.

https://github.com/LLK/scratch-blocks/blob/82c8f270acd930b0b51a8f171ca64d30f0685f9c/core/field_number.js#L168-L169

Operating System and Browser

Samsung Chromebook Pro (Webview)

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

Inspect core/field_number.js around lines 168-169 and reproduce the behavior in the Samsung Chromebook Pro Webview described in the issue. Compare keyboard entry with the soft numberpad and check the missing backspace asset; done means keyboard numbers remain usable and backspace is available without changing the behavior on Android tablets.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.