Copy&paste with screenReaderMode
See original GitHub issueWhen 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
-
var term = new Term({ screenReaderMode: true });
-
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:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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?