AgregoreWeb / agregore-browser

A minimal browser for the distributed web (Desktop version)
https://www.youtube.com/watch?v=TnYKvOQB0ts&list=PL7sG5SCUNyeYx8wnfMOUpsh7rM_g0w_cu&index=14
GNU Affero General Public License v3.0
715 stars 66 forks source link

Middle click in url bar should paste and go #227 #253

Closed Arskan17 closed 4 months ago

Arskan17 commented 5 months ago

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 ;

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 of find.addEventListener in app/ui/script.js. Should I have added one for paste-and-go as well ??

Arskan17 commented 5 months ago

@RangerMauve can you please take a look? Thanks!

Arskan17 commented 5 months ago

I added all the suggested changes. It now works properly.

Arskan17 commented 4 months ago

All good.