Open marusak opened 5 years ago
You should be able to switch between modes at runtime:
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?
@flenter as long as screen readers work fine and hover to announce works as well then that sounds good.
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 to that position under the
Related #1003 ?
When screenReaderMode is used it is not possible to use right-click and select copy or paste from context menu.
Details
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?