Questions tagged [right-click]

A right-click is pressing the right or secondary button on a mouse.

A term used to describe the action of pressing down on the right mouse button. The right-click is used to provide additional functionality to a computer's mouse, usually in the form of a drop-down menu containing additional options.

Please read more at: http://www.computerhope.com/jargon/r/righclic.htm

694 questions
3
votes
3 answers

Detectinig the target of the click using JavaScript?

How do I detect what object or ID or the user right-clicked on? I'm using the onContextMenu to trigger a function but I don't know how to detect the target.
Registered User
  • 8,706
  • 9
  • 32
  • 40
3
votes
1 answer

WPF DragDrop.DoDragDrop (for a RIGHT-Click?)

In WPF I want to do initiate a drag-drop using the right click. Something like windows explorer, right click, move slightly and you get the adorner to indicate a drag drop in operation. Don't move and you get the context menu when you let up the…
jeff
  • 3,269
  • 3
  • 28
  • 45
3
votes
3 answers

Why can't I copy values from an editable textbox?

I have a GUI where some values are displayed in an editable textbox. For some reason I cannot copy those values with the mouse. I can select the text, but no drop-down menu appears when I right-click on the selected text. I have been looking all…
Lucas
  • 13,679
  • 13
  • 62
  • 94
3
votes
1 answer

Mouse right click on Firefox triggers click event

I noticed that the mouse right click on Firefox triggers an addEventListener. I tried this code on more browsers and more OS (IE 11-10-9, Safari, Chrome) and by pressing the mouse right click, only on Firefox the console.log message is always…
misterwolf
  • 424
  • 4
  • 14
3
votes
0 answers

Right click multiple selection in JTable popup menu

I want to apply my popup menu for multiple rows that I select with the mouse. When I drag the mouse it selects the rows, but when I right click for popup menu it selects only 1 row. As it shows on the picture: from 1 to 2. I want the popup menu to…
Davis8988
  • 298
  • 4
  • 16
3
votes
1 answer

I need to access the right Click options we get, on a webpage?

I have web page with an image. When I right click on the image, I'll get some option in the menu. I need to access the "Save Image As" option or its event. So that from there it should save to two different places. This is a JSP page.
3
votes
1 answer

How to add an exception to a jQuery that disables right-click?

I am trying to disable right-click in the whole page except for two elements that are meant to be copied. I know disabling right-click sounds like a bad idea about every time, but it makes sense to me in this case. I found some information about how…
Lekstadt
  • 578
  • 3
  • 19
3
votes
0 answers

How to disable Flash right-click context menu in MS Edge browser

I'm trying to disable Flash context menu from appearing. I managed to do it in chrome/firefox/explorer by capturing the mouseup/mousedown/contextmenu events and preventing their propagation. This doesn't work for the Edge browser. Any ideas?
Marumba
  • 359
  • 3
  • 12
3
votes
4 answers

Does disabling right-click on a web page affect accessibility for the disabled?

I seek to make an argument against disabling right-click on a webpage, but my target audience is difficult. I think we can all agree that disabling right-click doesn't improve web page security. I'm wondering, though, does disabling right-click have…
David Mills
  • 2,385
  • 1
  • 22
  • 25
3
votes
4 answers

addEventListener to right click event

I would like to add event listener to a right click event, i know how to deal with a simple click: document.getElementById("myBtn").addEventListener("mousedown", function(){ }); What about a right click event ?
Khouloud
  • 81
  • 1
  • 1
  • 10
3
votes
2 answers

Right-click on a Listbox in a Silverlight 4 app

I am trying to implement what I used to take for granted in Winforms applications. I am a Silverlight noob, so hopefully all this is elementary. I have a listbox in a Silverlight 4 app. I'd like to do the following: Right-click on the…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
3
votes
2 answers

How can I add an item to the right click menu on the desktop

I have an application that runs in the background and changes the user's desktop background at set intervals. I would like to make it possible for the user to right click the desktop background and have the option to download the photo or advance to…
Sean Lev
  • 121
  • 1
  • 6
3
votes
2 answers

Right controlClick on ToolbarWindow321 autohotkey

I'm quite new in autohotkey and I'm currently facing a misunderstanding about the ControlClick. My aim is to right click on an icon on the toolbarWindow321 with a ControlClick to display the contextual menu. I do not want to use a Click or a Send as…
Koam
  • 43
  • 3
3
votes
1 answer

Right-click on a NSStatusItem

I have a NSStatusItem and I want to popup a menu by rightclicking the item. I subclassed a NSView and overwrote the - (void)rightMouseDown:(NSEvent *)event method. I also implemented - (void)mouseDown:(NSEvent *)event for looking at the…
papr
  • 4,717
  • 5
  • 30
  • 38
3
votes
2 answers

On Qt widgets like DoubleSpinBox or ComboBox, how do i have custom right click menu

I have a few combo-boxes and double spin boxes on my Qt Dialog. Now I need a "ResetToDefault" item on a menu that comes up when you right click on the widget (spin box or combo box). How do i get it. Is there some way I can have a custom menu that…
AMM
  • 17,130
  • 24
  • 65
  • 77