Skip to content

Right-click paste does not work #202

@parisk

Description

@parisk

Right-click paste does not work. This regression was caused after #175, since we moved input handling to a textarea instead of xterm itself.

Proposals

This could be solved in the following two ways (additional ideas are always welcome though)

  1. Temporarily move the textarea element below the mouse cursor on right click (Add textarea back and support IMEs #175 (comment)). This would need non-native selection handling though (Add textarea back and support IMEs #175 (comment)).
  2. Temporarily give focus and enable contenteditable on the terminal element to allow pasting without messing with text selection issues.

Out of these two proposals IMO 1. is the best way to go (it will also fix other bugs like #116), but it will need definitely more work, while 2. is a quick hack that could do the job for now.

Details

  • Browser and browser version: All browsers
  • OS version: All OSes
  • xterm.js version: >= 10fbf0d

Steps to reproduce

  1. Right click on the terminal
  2. Notice that there is no Paste option in the right click menu, while it should

Metadata

Metadata

Assignees

Labels

type/bugSomething is misbehaving

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions