question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copy&paste with screenReaderMode

See original GitHub issue

When screenReaderMode is used it is not possible to use right-click and select copy or paste from context menu.

Details

  • Browser and browser version: Firefox 64
  • OS version: Fedora 29
  • xterm.js version: 3.10.1

Steps to reproduce

  1. var term = new Term({ screenReaderMode: true });

  2. Then right-click on the terminal and there is no option for pasting.

Almost related question: This property can be set only in constructor, right? It is not possible to dynamically change between modes?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
shanytccommented, May 23, 2021

the main issue for right click -> Save Image… context-menu in xtermjs, is because ‘.xterm-helpers’ is having position:absolute. Try change it to position: relative. When you right click on the canvas, xtermjs will calculate the x,y position of the mouse and move the <textarea/> to that position under the <div class="xterm-helpers"> element so that it will then capture the right click (copy & paste) context menu and also include keyboard support. So basically sometimes the “xterm-helpers” is not positioned under the actual canvas and so you get “Save image…” context menu because that’s the canvas’s context menu and not the <textarea/> element’s context menu.

1reaction
flentercommented, Apr 7, 2020

I experimented a bit with adding pointer-events: none; to the .xterm-accessibility element. This seems to restore the copy/paste functionality while maintaining the screenreader functionality (this last thing was tested with voiceover on mac in conbimation with Chrome). Would there be a disadvantage to this approach?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tips/Copying and Pasting Text Spoken By Your Screen Reader
To virtualize the current window, press insert-alt-W. To virtualize just the currently focused control, press shift-insert-alt-w.
Read more >
Use a screen reader to copy the link for a file or folder in a ...
To paste the link in a document or message, press Ctrl+V. Anyone in your organization you send this link to will be able...
Read more >
TalkBack 101 - Copy And Paste *Older Method* - YouTube
In this video, I show several ways to COPY AND PASTE text while using #TalkBack on #Android.#AssistiveTechnology #AndroidAccessibility ...
Read more >
Use the built-in screen reader - Google Accessibility Help
Press and hold Ctrl, tap Forward or Back until a tab is selected. Then press Search + Shift + Volume up .
Read more >
Understanding screen reader interaction modes - Tink
By creating a virtual copy of the document, screen readers make it possible for blind people to interact with content in ways that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found