jlesage / docker-baseimage-gui

A minimal docker baseimage to ease creation of X graphical application containers
MIT License
1.2k stars 179 forks source link

quick set clipboardPaste #98

Open h2y opened 1 year ago

jlesage commented 1 year ago

Can you provide more details about this change ?

h2y commented 1 year ago

@jlesage When using the Firefox container, it is necessary to read and write the clipboard through the input box. Since there is no Chinese input method in the container, this is a frequent operation for Chinese users. When JS detects changes in the input box, it sends the content to the container. The change event is triggered only when the input box loses focus, whereas the input event can immediately trigger the event when the content changes. This greatly enhances the user experience.

jlesage commented 1 year ago

But don't you need to perform a paste operation (e.g. ctrl+v) inside the container ? This operation would trigger the focus lost event.

h2y commented 1 year ago

@jlesage By using some additional scripts, it can automatically input the text in the clipboard in the browser, so don't have to paste it manually in that case. (You can consider it as a feature built into the FF container) 😄 https://github.com/jlesage/docker-firefox/issues/146#issuecomment-1484854187