I worked in app/ui/omni-box.js
I added an event lister for when the middle click on the mouse is pressed.
For that ;
I added a new constant clipboard that imports the clipboard from electron.
I added an instance from the BrowserWindow class to handle the window.
The EvenetListener then executes the following ;
Clears the address bar,
reads the url from the clipboard,
formats the url based on the protocol,
updates the search history,
and then loads the url.
So far it just pastes the url, but doesn't load it.
And also, if the url is pasted without clearing the address bar first, it just pastes back what was already there.
I don't know if the event paste-and-go is being recorded.
I've seen a bunch of find.addEventListener in app/ui/script.js. Should I have added one for paste-and-go as well ??
I worked in app/ui/omni-box.js I added an event lister for when the middle click on the mouse is pressed. For that ;
clipboard
that imports the clipboard from electron.BrowserWindow
class to handle the window.The
EvenetListener
then executes the following ;So far it just pastes the url, but doesn't load it. And also, if the url is pasted without clearing the address bar first, it just pastes back what was already there.
I don't know if the event
paste-and-go
is being recorded. I've seen a bunch offind.addEventListener
in app/ui/script.js. Should I have added one forpaste-and-go
as well ??