libcord-tech / gauntlet

A keybinding tool for defending quickly in NationStates.
BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

Keybind for closing tabs #17

Closed roavin closed 1 year ago

roavin commented 1 year ago

Requested by Icarus:

Is there a way that closing an NS tab is tied to one key so you dont have to reach halfway across your keyboard to press ctrl+w but instead can just press w (for example) to close the tab? It is something that ive always missed in breeze that has just improved my switch times etc a lot.

roavin commented 1 year ago

I think this is a good idea, but it shouldn't be set by default because that could lead to surprises.

paulhaku commented 1 year ago

Just from some quick googling, this doesn't seem like it's possible in Chrome due to security concerns. I'm not sure that Breeze has ever had this feature either.

roavin commented 1 year ago

chrome.tabs.remove() should do the trick.