topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 6:37 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: close tab with right click in opera  (Read 9295 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
IDEA: close tab with right click in opera
« on: October 01, 2011, 08:15 AM »
hello

when I right click on the empty area of the webpage, I would like to close the current viewing tab in Opera

this right click closing, should not work when I have selected text, when I have put the cursor inside a text input box, when I right click on a graphics file, when I right click on a link, when I right click on a selected text etc

can anyone implement this?

thanks!!
« Last Edit: October 01, 2011, 10:47 AM by jgpaiva »

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #1 on: October 01, 2011, 11:31 AM »
instead of having to check for "selected text, when I have put the cursor inside a text input box, when I right click on a graphics file, when I right click on a link, when I right click on a selected text etc", consider using a mouse rocker (hold down right button and click left button or hold down left button and click right button) to send the "close tab" command.

Then it becomes a very short and simple ahk script.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #2 on: October 01, 2011, 11:42 AM »
IMHO, using the close button on the Tab is more intuitive then selecting a Close Tab entry from the context menu. But I removed all instances of Opera from my system, because I was never using them, so I can't even check if that button is there :o

Defining a mouse-gesture to close a tab should also be fairly easy, if it's not pre-defined.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #3 on: October 01, 2011, 11:56 AM »
Defining a mouse-gesture to close a tab should also be fairly easy, if it's not pre-defined.

When browsing through the help I found this default mouse gesture:
Close tab   hold right button, move down then right
Just tested it with Opera 11.51, and it worked like a charm :D

Also tried in FF (7.0.1) with FireGestures add-in, and it has the same gesture doing that action :up:

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #4 on: October 01, 2011, 12:01 PM »
Just tested it with Opera 11.51
Yup, I re-installed ;D

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #5 on: October 01, 2011, 12:44 PM »
mouse rocker is already an option that I use in opera, but what I am asking is far more convenient imo

as for closing a tab by clicking the close button on the tab, is inconvenient because you have to move the mouse to the tab to close it

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #6 on: October 02, 2011, 10:21 AM »
kalos, is the down-right mouse gesture suggestion good enough for your purposes?  If so, I'll mark this thread as solved.

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #7 on: October 02, 2011, 10:53 AM »
kalos, is the down-right mouse gesture suggestion good enough for your purposes?  If so, I'll mark this thread as solved.

mm, not really, because it is not that convenient (esp. when using touchpad) and because I use ahk scripts that prevent this

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #8 on: October 07, 2011, 11:47 AM »
hello, any update to this?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #9 on: October 07, 2011, 11:51 AM »
@kalos: Your original request of a single right-click would be very difficult to do reliably.  How about a double-right-click or some other sort of modifier like ctrl-right-click, etc.?

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #10 on: October 07, 2011, 01:29 PM »
@kalos: Your original request of a single right-click would be very difficult to do reliably.  How about a double-right-click or some other sort of modifier like ctrl-right-click, etc.?

double click or even middle click would be the closest, but why single right click wouldn't be reliable?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #11 on: October 07, 2011, 01:37 PM »
double click or even middle click would be the closest, but why single right click wouldn't be reliable?

Because, when working externally with a web browser, it's difficult (if not impossible) to know what type of control the mouse is over.  Programmatically, it all looks like one large control instead of individual text boxes, edit fields, etc.  Does that make sense?

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #12 on: October 07, 2011, 01:47 PM »
double click or even middle click would be the closest, but why single right click wouldn't be reliable?

Because, when working externally with a web browser, it's difficult (if not impossible) to know what type of control the mouse is over.  Programmatically, it all looks like one large control instead of individual text boxes, edit fields, etc.  Does that make sense?

yup, but javascript can interact with webpage elements (maybe other languages too)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #13 on: October 07, 2011, 01:55 PM »
Here's an AHK snippet that will let you middle-click to close a tab in Opera:

Code: Autohotkey [Select]
  1.  
  2. #IfWinActive, Opera ahk_class OperaWindowClass
  3. {
  4.     MButton:: SendInput, ^w
  5. }

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #14 on: October 07, 2011, 02:03 PM »
Here's an AHK snippet that will let you middle-click to close a tab in Opera:

Code: Autohotkey [Select]
  1.  
  2. #IfWinActive, Opera ahk_class OperaWindowClass
  3. {
  4.     MButton:: SendInput, ^w
  5. }

but it should not work when the cursor is inside text box, when text is selected, etc :D
I too think it's difficult, but thanks anyway!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: close tab with right click in opera
« Reply #15 on: October 07, 2011, 02:10 PM »
but it should not work when the cursor is inside text box, when text is selected, etc :D
I too think it's difficult, but thanks anyway!

Change it to use a modifier like ctrl-middle-click:  ^MButton:: SendInput, ^w