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
34
votes
3 answers

Java Swing JTable; Right Click Menu (How do I get it to "select" aka highlight the row)

Short: I need a "right-click event" to highlight the cell row. I am using a JTable inside a ScrollPane in Java Swing (Netbeans Matisse). I have a MouseClicked event listener on the JTable that does the following: if (evt.getButton() ==…
user402642
32
votes
5 answers

How to remove the right click menu in VLC Media Player?

I am adapting VLC to make a custom video player. I chose VLC because of its ability to play lots of formats, and because it allows me develop a custom skin for it very easily. But I also want to restrict user access to the file system, for which I…
awreccan
  • 671
  • 1
  • 7
  • 11
28
votes
3 answers

Right Click to select items in a ListBox

I'm trying to make a list of items that you can do several actions with by right-clicking and having a context menu come up. I've completed that, no problem whatsoever. But I'd like to have it so that when you right click on a item, instead of…
user1008784
22
votes
10 answers

How to disable mouse right click on a web page?

I want to disable mouse right click on an HTML page. I have a page where user has to enter the details. I don't want the user to see the menu thats get displayed with the mouse right click. Rather I want to display a custom menu. I know there are…
Puru
  • 8,913
  • 26
  • 70
  • 91
22
votes
2 answers

Chrome extension: add option to right click menu when clicking certain HTML element

I want to create a Chrome extension that adds an option to the right click menu when the user right clicks a certain HTML element (for example a DIV with a known ID). I would use this to add an option when the user right clicks a tweet on…
mxch
  • 835
  • 2
  • 10
  • 20
18
votes
4 answers

Right click shortcut for Mac Lion OS?

How to perform right click through Keyboard in Mac Lion OS? Since I am keyboard loving person, I don't like all the time use mouse for right click. I found much of the shortcuts of Mac through googling, but I didn't found this one.
DShah
  • 9,768
  • 11
  • 71
  • 127
18
votes
1 answer

Is it possible to capture "Open in New Tab" clicked event of context menu using javascript?

I know I can use capture the Right Click event by using jQuery's "contextmenu" but my question is, how can I capture the event after the context menu appears i.e. When the user clicks on "Open Link in New Tab" action. Any help? Thanks.
pso
  • 819
  • 12
  • 25
18
votes
3 answers

how to write your own right click menu and disable the default using jquery/javascript

I successfully disabled the right click event on the page that I am working on using jquery. I want to create a customize right click menu. How can I do this? Does this need relevant css setting to get it working (i.e. "position")?
kratz
  • 576
  • 4
  • 9
  • 19
16
votes
5 answers

How can I detect a right-click in SwiftUI?

I'm writing a simple Mines app to help me get to know SwiftUI. As such, I want primary click (usually LMB) to "dig" (reveal whether there's a mine there), and secondary click (usually RMB) to place a flag. I have the digging working! But I can't…
Ky -
  • 30,724
  • 51
  • 192
  • 308
16
votes
4 answers

Show contextual menu on ctrl-click/right-click on header of NSTableView

I'm searching for an elegant way to detect a right-click/ctrl-click on the header of an NSTableView. When the right click occurs, I want to display an contextual menu. - (NSMenu *)menuForEvent:(NSEvent *) detects only right clicks in the table -…
tubtub
  • 163
  • 1
  • 4
15
votes
1 answer

How to add ContextMenu to the system tray icon programmatically?

I want to programmatically add a context menu to my tray icon, so that when I right-click on the tray icon, it should show me the menu.How should I write the right-click event handler for my tray icon? I have tried the below: private void…
user2622971
  • 685
  • 3
  • 10
  • 20
14
votes
2 answers

right click context menu in vs code executes immediately

When I right click in the editor, vs code executes whatever menu item the cursor happens to be over. It happens far too fast for me to make my actual choice known. I have already spent 30 minutes trying to find a solution. If you search for "right…
Malik A. Rumi
  • 1,855
  • 4
  • 25
  • 36
14
votes
5 answers

disable right click without js and css

This is a random Chinese website http://www.soap-china.com/index.asp I noticed that right click is disabled. I always have JavaScript off, so I started delete node by node, css line by line in Firebag, but didn't find out what is disabling right…
Qiao
  • 16,565
  • 29
  • 90
  • 117
14
votes
5 answers

how can you do right click using selenium?

im trying to preform a right click using selenium, any thoughts on how to do this?
doctoroots
  • 189
  • 1
  • 1
  • 6
13
votes
4 answers

Right click to select row in DataGridView

I need to select a row in a DataGridView with right click before a ContextMenu is shown because the ContextMenu is row-dependent. I've tried this: if (e.Button == MouseButtons.Right) { var hti = dataGrid.HitTest(e.X, e.Y); …
user2396911
  • 163
  • 1
  • 1
  • 9
1
2
3
46 47