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
7
votes
2 answers

Making an editable flowchart in Qt/C++

I'm working on making a editable flowchart and I'm having a lot of issues conceptually with Qt. I've tried many different ways of implementing classes ranging from QTreeWidget, QTableWidget, and using just a bunch of easy QPushButtons. Ideally I'd…
mhag
  • 85
  • 2
  • 6
7
votes
4 answers

click event in jQuery and right mouse clicking

Does click trigger when right mouse button was clicked? I want to implement a right click kind of menu with full calendar, but it only has dayClick event, which I think is triggered only when left mouse button is clicked. I was thinking something…
Apostolos
  • 7,763
  • 17
  • 80
  • 150
6
votes
2 answers

JS: detect right click without jQuery (inline)

I'm calling a function, that builds a table which includes several links. I want to check if a link has been clicked with right or left mouse. I tried to add the following part to the hyperlink. onmousedown="function mouseDown(e){ switch…
Keith L.
  • 2,084
  • 11
  • 41
  • 64
6
votes
1 answer

Selenium 2 right-click

I am using Selenium 2 (Web Driver) under Linux with a FireFoxDriver. I am not able to perform a right click on a WebElement or on another possition using coordinates. I also cannot move the mouse pointer. I have tried to use the "Actions"…
Angel Romero
  • 2,089
  • 2
  • 14
  • 17
6
votes
2 answers

WinForms ListBox Right-Click

I am trying to add a context menu to a listbox when you right click an item. I am not even sure if the right click function with working properly. Here is the code: private void lstSource_MouseDown(object sender, MouseEventArgs e) { if (e.Button…
gberg927
  • 1,636
  • 9
  • 38
  • 51
6
votes
4 answers

Can't use jquery's click event handler to detect right click

In trying to detect a right mouse click with jquery, I noticed that the click event handler doesn't seem to be fired off with a right mouse click, while the mousedown or mouseup event handler's do. For example, after a right click on the test div,…
jbyrd
  • 5,287
  • 7
  • 52
  • 86
6
votes
1 answer

how to remove items from right click context menu in Visual Studio Code?

Currently, my right click context menu looks like this It is too long. Many items I don't ever use. Can I remove some items from the menu? Thank you.
T H
  • 423
  • 4
  • 7
6
votes
3 answers

Open folder as android studio project

How to add "Open folder as Android Studio project" to folders (in file explorer in windows) quick menu (right click).
Sh.Raai
  • 119
  • 1
  • 10
6
votes
1 answer

Detecting a context-menu paste in the browser with jquery

I am trying to check the length of the text in a textarea when someone pastes content in there via the right-click but can't seem to find how to do it.
Gaz
  • 1,249
  • 3
  • 19
  • 37
6
votes
2 answers

Is there any way to 'simulate' right-click save-as command or force download of file in the browser with JavaScript?

I have this situation where we have media files stored on a global CDN. Our web app is hosted on it's own server and then when the media assets are needed they are called from the CDN url. Recently we had a page where the user can download file…
MetaGuru
  • 42,847
  • 67
  • 188
  • 294
6
votes
1 answer

How to disable brush selection on right click in d3.js

The question is how do I prevent brush events (brushstart, brush and brushend) from firing if the right mouse click was pressed. In other words I want the d3 brush to act only if the left mouse or the middle mouse button was pressed. I haven’t found…
aledujke
  • 1,125
  • 7
  • 15
6
votes
3 answers

JavaScript: Capturing right click and disabling menu only within certain element

I have coded a jquery script where there is a small grid on screen and using drag and drop users can place tiles on the grid (snaps in place). Currently if you hover over a tile it fades in the option to rotate, but I would much prefer it if you…
Pez Cuckow
  • 14,048
  • 16
  • 80
  • 130
6
votes
1 answer

Detect if browser supports right-click event overriding

I'm using a context-menu jQuery plugin and I need to detect what browsers support this. How can this be done? I heard some versions of Opera and Safari don't support this right-click overriding business.
Jonah
  • 2,040
  • 7
  • 29
  • 32
6
votes
3 answers

Unable to detect right mouseclick in ComboBox

I have a ComboBox that is a simple drop down style. I wanted to open a new window when the user right clicks on an item in the list, but am having trouble getting it to detect a right click has occurred. My code: private void…
marco0009
  • 163
  • 2
  • 8
6
votes
2 answers

Custom context menu in d3 and svg

I would like to have custom context menu appearing when I right click on an svg circle. For now I have found this answer that helps me to handle the right click with the following code: .on("contextmenu", function(data, index) { //handle right…
Christopher Chiche
  • 15,075
  • 9
  • 59
  • 98