Comments (7)
Ah, I just found the problem mentioned in the docs. But anyway, good to have it also here as a GitHub issue. Or is this a wontfix for some reason? Not sure what you mean by "security restrictions" in the doc.
from domterm.
This is fixed now with my recent MacOSX fixes.
from domterm.
You mean copy and paste now works as expected using keyboard shortcuts?
I would not expect the Paste menu command to work if using Firefox or Chrome, only if sing Electron or Qt.
The Copy menu command may work. (A recent change to not use iframes when using jsMenus seems to have fixed that.)
It seems doable to fix the Paste menu entries by having the server call the pbpaste
command on behalf of the browser.
from domterm.
I meant specifically Electron (which was broken before my recent fixes).
I did not try Firefox or Chrome again. Maybe it does not work. But in principle, I don't really see a reason why it should not work (or why there is no way to make it work). I can copy & paste on any other website as well?
from domterm.
There are restrictions on whether a web application can read or write to the clipboard: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Interact_with_the_clipboard
This is to prevent a malicious web application from spying on or modifying a user's clipboard. It is possible to give an extension the needed premissions. but that seems to require the user to install an extension (or web application), which is more complicated than just opening a web page. This is not a problem when using Electron.
from domterm.
This is only when your web app catches the key event and handles it manually. But the browser already does copy & paste for you.
from domterm.
"This is only when your web app catches the key event and handles it manually. But the browser already does copy & paste for you."
Copy/Paste key-bindings work, and the browser Edit menu seems to work. I'm concerned about handling menu events when using the jsMenus package, which is a plain-JavaScript library. It would be nice to have Paste working in that case.
from domterm.
Related Issues (20)
- RoadMap HOT 12
- DomTerm freezing - no input or output HOT 43
- DomTerm freezes when using sudo HOT 5
- A new DomTerm/Julia calculator HOT 7
- problems on WebKit/WebKitGtk HOT 5
- Config file example
- Issues with micro and nano HOT 4
- Questions HOT 5
- Sixel glitches HOT 19
- Failure to build wry HOT 6
- Accessibility HOT 1
- issues specific to macOS HOT 1
- QT issues including domterm: unrecognized option '--qtdomterm' HOT 22
- better dark mode styling HOT 22
- easier install on mac? HOT 4
- MacOS build instructions wrong HOT 25
- window list display
- issues with xterm.js support
- Page reload behavior in browser HOT 4
- Feature request: kitty keyboard protocol HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from domterm.