tiny-pilot / tiny-pilot/tinypilot

Add NumLock to on-screen keyboard

Open
#808 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
3.5k
Forks
291
PR merge metrics
No merged PRs in 30d

Description

The TinyPilot on-screen keyboard has no NumLock. This can lead to a case where the NumLock on the user's keyboard is out of state with the remote system:

https://forum.tinypilotkvm.com/-172/numlock-and-ten-key-numbers-issue

Workaround

In the meantime, the user can work around this by pasting the following snippet in their browser's JavaScript console:

let key = document.getElementById("on-screen-keyboard").shadowRoot.querySelector('keyboard-key[code="ScrollLock"]');
key.innerText = "Num Lock"
key.code = "NumLock"

This temporarily converts the Scroll Lock key on the on-screen keyboard to a Num Lock key.

image

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 locating the on-screen keyboard implementation for the on-screen-keyboard element and inspect how the workaround changes the ScrollLock key. Done means the keyboard visibly provides Num Lock and sends NumLock to the remote system; verify this against the existing keyboard behavior and any related tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
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.