cretz / doogie

A Chromium-based web browser with tree-style pages
https://cretz.github.io/doogie
MIT License
279 stars 28 forks source link

Middle mouse button click on Tree-Navigation Pages #61

Open travisfont opened 6 years ago

travisfont commented 6 years ago

To consider: this functionality (middle mouse click) should close a page as this is expected behavior on many browsers.

cretz commented 6 years ago

Ah, I did not know that. I don't have a middle mouse button on my laptop I develop with. So is this middle-click on other browsers is on the tab itself? Can you confirm for me a couple of behaviors?

  1. What happens when you middle-click a tab title in FF, FF with tree-style tabs, and/or Chrome? What happens in Doogie?
  2. What happens when you middle-click a link in FF, FF with tree-style tabs, and/or Chrome? What happens in Doogie?

The goal is usually to replicate most of these features so if it's common for middle-click of a tab title to close the tab, we can likely support that (though it's not the fastest way to close).

milleniumbug commented 6 years ago
  1. Firefox: a tab is closed as if clicking on a "close tab" button. Firefox with tree-style tabs: dunno. Chrome: Same as in Firefox. Doogie: a tab is selected as if by left clicking on it.
  2. Firefox: The same as right clicking a link and selecting "Open in a new tab". Firefox with tree-style tabs: dunno. Chrome: Same as in Firefox. Doogie: The same as right clicking a link and selecting "Open in a Background Child Page"

Edit: tree-style opens up in a new child tab and middle clicking a tab closes it.

cretz commented 6 years ago

@milleniumbug - Thanks. Since both Chrome and FF support middle clicking to close a page, Doogie should also (and will just bake it in for now since Doogie doesn't have a well defined config system).