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
618
votes
20 answers

How to distinguish between left and right mouse click with jQuery

How do you obtain the clicked mouse button using jQuery? $('div').bind('click', function(){ alert('clicked'); }); this is triggered by both right and left click, what is the way of being able to catch right mouse click? I'd be happy if…
Sinan
  • 11,443
  • 7
  • 37
  • 48
414
votes
21 answers

How to add a custom right-click menu to a webpage?

I want to add a custom right-click menu to my web application. Can this be done without using any pre-built libraries? If so, how to display a simple custom right-click menu which does not use a 3rd party JavaScript library? I'm aiming for something…
Registered User
  • 8,706
  • 9
  • 32
  • 40
139
votes
9 answers

Making custom right-click context menus for my web-app

I've a few websites like google-docs and map-quest that have custom drop down menus when you right-click. Somehow they override the browser's behavior of drop-down menu, and I'm now sure exactly how they do it. I found a jQuery plugin that does…
Gordon Gustafson
  • 40,133
  • 25
  • 115
  • 157
134
votes
8 answers

right click context menu for datagridview

I have a datagridview in a .NET winform app. I would like to rightclick on a row and have a menu pop up. Then i would like to select things such as copy, validate, etc How do i make A) a menu pop up B) find which row was right clicked. I know i…
user34537
92
votes
3 answers

Java Mouse Event Right Click

On my three button mouse MouseEvent.BUTTON2= Middle Click and MouseEvent.BUTTON3 = Right Click. Is this the case on a two button mouse? Thanks
DD.
  • 21,498
  • 52
  • 157
  • 246
68
votes
12 answers

Right click to select a row in a Datagridview and show a menu to delete it

I have few columns in my DataGridView, and there is data in my rows. I saw few solutions in here, but I can not combine them! Simply a way to right-click on a row, it will select the whole row and show a menu with an option to delete the row and…
Data-Base
  • 8,418
  • 36
  • 74
  • 98
55
votes
12 answers

Jquery/JS prevent right click menu in browsers

I have my div with a right click popup menu: // Attatch right click event to folder for extra options $('#fBox' + folderID).mousedown(function(event) { if (event.which == 3) { // Set ID currRClickFolder = folderID; //…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
53
votes
3 answers

Hide items in the right-click context menus in Visual Studio 2010 (08)?

The right-click context menus of the source editor, the project items and the solution item, is getting ridiculously long, and two of them even have scrolling now on my 1680x1050 screen. Is there any way for me to hide items on these menus, even if…
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
52
votes
5 answers

Adding a right click menu to an item

I have been searching for a while for a simple right-click menu for a single item. For example if I right-click on a picture I want a little menu to come up with my own labels: Add, Remove etc. If anyone could help I would be most greatful. Thanks…
Marshal
  • 1,177
  • 4
  • 18
  • 30
46
votes
8 answers

How to remove git from menu context in Documents?

I have a little question: How can I remove the "git bash here" and "git gui here" from my menu context in my Documents directory? I have tried: Reinstalling the Git-2.15.0-64-bit with unchecked options. Removing the keys…
45
votes
13 answers

"Git Bash here" isn't working when right clicking

I don't know, how that happened but before today I could right click on any folder and there would be and an option Git Bash here. But today I dont have that option. Anyone knows how to get that back?
FoxKllD
  • 971
  • 3
  • 13
  • 22
42
votes
1 answer

Adding a right-click menu for specific items in QTreeView

I'm writing a Qt desktop application in c++ with Qt Creator. I declared in my main window a treeView, and a compatible model. Now, I would like to have a right-click menu for the tree item. Not for all of the items, but for a part of them, for…
user1835297
  • 1,059
  • 2
  • 12
  • 24
41
votes
1 answer

Confirmation Box in C# wpf

I want to show confirmation Box in C# code. I've seen above solution for that but it shows me exception at 'Yes' as 'System.Nullable' does not contain definition for 'Yes'. How should I remove this error? private void…
user2622971
  • 685
  • 3
  • 10
  • 20
40
votes
17 answers

Right mouse click in web applications: good or bad idea?

I'm currently working on a web application and the powers above have decided that overriding the browser's right-click menu with our own application-specific one is the way to go. I totally disagree. I feel that when someone is using a web browser…
ntownsend
  • 7,462
  • 9
  • 38
  • 35
35
votes
4 answers

How can I detect a rightmouse button event on mousedown?

I am updating/debugging and expanding the capabilities of my draggable script and I need to be able to achieve the following result: whatever.onRightMouseButtonMousedown = preventDefault(); I have done a lot of research to no avail, however, I know…
person0
  • 1,278
  • 2
  • 15
  • 20
1
2 3
46 47