Questions tagged [modifier-key]

A modifier key is a special key (or combination) on a computer keyboard that temporarily modifies the normal action of another key when pressed together.

Per Modifier Key:

In computing, a modifier key is a special key (or combination) on a computer keyboard that temporarily modifies the normal action of another key when pressed together. By themselves, modifier keys usually do nothing; that is, pressing any of the Shift, Alt, or Ctrl keys alone does not (generally) trigger any action from the computer.

For example, in most keyboard layouts the Shift key combination ⇧ Shift+A will produce a capital letter "A" instead of the default lower-case letter "a" (unless in Caps lock or Shift lock mode). A combination of Alt+F4 in Microsoft Windows will close the program in the active window; in this instance, Alt is the modifier key. In contrast, pressing just ⇧ Shift or Alt will probably do nothing unless assigned a specific function in a particular program (for example, activating input aids or the toolbar of the active window in Windows).

61 questions
1
vote
1 answer

Sublime Text 2 Key Bindings - Is there any way to detect left/right modifier keys?

Is it possible to make Left Alt+A and Right Alt+A do different things? And of course, other modifier keys. If not, maybe the following idea would work? If AppleScript, Python, Ruby, Perl etc. can detect left/right modifiers I can set complicated…
Taylan
  • 3,045
  • 3
  • 28
  • 38
1
vote
1 answer

Dispatch click event and keep keystroke modifiers

I would like to listen to a click event on a particular element and then dispatch it to a link element while keeping in mind if the meta key was hold or not. For instance: Let's say I have a table of elements. When the user clicks on a row I would…
Nima Izadi
  • 996
  • 6
  • 18
0
votes
0 answers

GTK4 under rust, trying to find which mouse pointer and whether there are modifer keys pressed

I'm writing a gtk4 application in rust, and I'd like to get the mouse key that was clicked and any modifier keys at the time. My GestureClick handler has .buttons(0) to accept input from all buttons, but the event object does not seem to have any…
russell
  • 660
  • 1
  • 10
  • 18
0
votes
0 answers

Use Control key and drag to select objects in fabricjs

The default way to select a group of objects interactively in fabricjs is to drag, which displays a blue selection rectangle and then, when the mouse is released, selects all the objects in the rectangle. Because I am using the drag action to pan…
Nigel
  • 585
  • 1
  • 5
  • 20
0
votes
0 answers

ImageMagick Display keybindings: using the "Alt" modifier key

I have been using to use a feature of ImageMagick 'Display' utility, namely, what is documented as Keyboard Accelerators. Those are keybindings to various functionalities that are otherwise available on menus. As far as I can tell, they all work…
Numbra
  • 620
  • 4
  • 8
0
votes
1 answer

What are QKeyEvent.nativeModifiers()?

What are QKeyEvent.nativeModifiers()? The documentation doesn't say much (https://doc.qt.io/qtforpython/PySide6/QtGui/QKeyEvent.html#PySide6.QtGui.PySide6.QtGui.QKeyEvent.nativeModifiers). From what I understand, the integer that is returned by…
amateur3057
  • 345
  • 1
  • 2
  • 11
0
votes
1 answer

Vue: How to change a button's text while a keyboard modifier is held?

Using Vue, I am trying to make a button change its behavior when the Shift key is held. It was pretty easy to change the behavior of the click event as such: @click.exact="goForward" @click.shift="goBackward" However, I am struggling with changing…
Kfir Eichenblat
  • 449
  • 2
  • 8
  • 27
0
votes
1 answer

C# virtual key modifier keys fail using Send Input method

I am trying to send simple key sequences (ctrl-p, shift-p) to the foreground app (which happens to be the Visual Studio editor unit test buffer). No matter what I try, I cannot get my test key sequences of control-p or shift-p to work properly. The…
Kevin
  • 1,548
  • 2
  • 19
  • 34
0
votes
2 answers

Shift value when only CTRL key is pressed?

Create a VCL Forms application and in the main form's OnMouseDown event handler write: procedure TForm2.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin if Shift = [ssCtrl] then ShowMessage('CTRL…
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
1 answer

Use Ctrl as modifier on Worksheet_SelectionChange

I would like to open a form when a locked cell is clicked in a specific way (double click, key modifiers, etc). If I use Worksheet_BeforeDoubleClick, it will show a warning after closing the form, stating that the cell is locked (which is…
Jakob Busk Sørensen
  • 5,599
  • 7
  • 44
  • 96
0
votes
0 answers

Multiple Keypress Detection in KeyPress event

I'm using Visual Studio 2013 and writing in VB.NET. I am creating a project for an internship at school. Right now in one of my forms I have it where you must type in your name. Here's some pertinent information. For the TextBox I do have Property…
0
votes
4 answers

Multiple Keys in KeyEvent Listener

I was wondering how to get all of the keys pressed in a key event. For example, I want to write a listener for ctrl + f that would toggle fullscreen. How could I check if both ctrl and f are pressed in one event? EDIT 1: I tried printing…
nrubin29
  • 1,522
  • 5
  • 25
  • 53
-1
votes
1 answer

c++ keyboards kbd.h need more information about processing the state of the modifier keys

I am starting to work with keyboardlayouts on windows using kbd.h. I understood the part scancode->keycode via kbdxx.dll but struggle on the part of processing modifier keys (shift, Ctrl,Alt) especially how the binary coding of the states of those…
user3443063
  • 1,455
  • 4
  • 23
  • 37
-1
votes
1 answer

pyqt5 - modifier key breaks drag and drop

I'm making an application in python 3.5 and Qt5.7 with two QTableWidgets and I want to be able to drop items from one of the tables into the other one. I set up the drag and drop settings on both tables and everything works correctly until I press a…
Isn
  • 9
  • 3
-3
votes
1 answer

How can I respond to a keyboard chord and replace the entered alpha key with a special one?

I want to, in a textbox on a WinForms app using C#, replace certain keyboard chords with special characters. For example, if the user enters "Ctrl+A", I want to insert into the textbox the character "á"; if the user enters "Ctrl+Shift+A", I want to…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862