microsoft / microsoft/pxt-microbit
Text editor Ctrl+right/left arrow keys don't work in Firefox
Nobody has claimed this yet.
- 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
- Open makecode in Chrome and in Firefox
- Toggle both into Javascript
- Press Ctrl+right arrow
- 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):
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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