microsoft / microsoft/pxt-microbit

Text editor Ctrl+right/left arrow keys don't work in Firefox

Open
#6,299 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser-compat monaco P2
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

Describe the bug
In Firefox (but not Chrome) the text editor doesn't support Ctrl+arrow keys for jumping past words.

To Reproduce

  1. Open makecode in Chrome and in Firefox
  2. Toggle both into Javascript
  3. Press Ctrl+right arrow
  4. In Chrome, this navigates by word. In Firefox, it does not move the cursor.

Note that Ctrl+up/down arrow scroll the text window without moving the cursor, in both browsers. Just mentioning in case it's relevant to the behaviour - maybe the scrolling functionality is interfering with the cursor move functionality?

Expected behavior
Ctrl+ left/right arrow should move the cursor to the next word boundary

micro:bit version (please complete the following information):
not hardware related

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Firefox 139.0.1 (64-bit) and Chrome Version 137.0.7151.41 (Official Build) (64-bit)
  • makecode.microbit.org version: 7.0.61
  • Microsoft MakeCode version: 11.1.14
  • But same behaviour present on preview

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

Reproduce the keyboard behavior in the MakeCode JavaScript editor using Firefox and Chrome, focusing on Ctrl+left/right and the related Ctrl+up/down scrolling behavior. Locate the editor's keyboard handling entry point, then verify that Ctrl+left/right reaches the next word boundary in Firefox without breaking scrolling; the issue's browser and version details provide the comparison setup.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.