Can't paste code to from clipboard
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 773
- PR merge metrics
- No merged PRs in 30d
Description
Pasting code from clipboard into the form on the website http://esprima.org/demo/validate.html doesn't work.
Steps to reproduce
Put text into clipboard, e.g. via starting Notepad, typing "123", selecting the text and copying it into the clipboard via Ctrl+Insert.
Open website http://esprima.org/demo/validate.html in the desktop browser (I used Firefox 53.0.2 32-bit on Windows 8.1 Pro 64-bit).
Click inside the field below Syntax Validator checks for mistakes and errors. There will be blinking text caret.
Press Shift+Insert on the keyboard to insert the text from the clipboard.
Expected output
"123" without quotes should appear on the spot where text caret is.
Actual output
Nothing happens. Right-clicking and selecting "Paste" from the pop-up menu inserts the text from the clipboard into the text edit field.
Relevant references
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
Start by reproducing the keyboard paste behavior at http://esprima.org/demo/validate.html in the reported Firefox and Windows setup, comparing Shift+Insert with the context-menu Paste action. Trace the demo's syntax-validator text field handling; done means clipboard text appears at the caret when using Shift+Insert without breaking the existing paste behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100