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
2
votes
1 answer

Flex: Determine if Space key is held down during MouseEvent

The MouseEvent class has the properties altKey, ctrlKey and shiftKey that I can use to determine if a modifier key (namely, Alt, Ctrl and Shift) was held down when the event occurred. But I want to determine if Space key is held down during a…
Hoang Huynh
  • 1,384
  • 2
  • 16
  • 33
2
votes
1 answer

Modifiers (SHIFT + (Random Key)) in Key Binding

How can I alter the Input/Action map so when I bind an action to a specific key it also binds an action to Some Modifier + specific key? i.e. SHIFT_DOWN_MASK + specific key So all of my key bindings work without modifiers. I am assigning a sound…
Alex
  • 21
  • 2
1
vote
1 answer

Detect if the active keyboard has a physical `Fn` key in Swift

I want to use the Fn modifier key if available, and if not, offer the user a different modifier. But only offer it to users without a Fn key. Some external keyboard do not have a Fn key. Is there any way to detect whether the active keyboard has a…
Sindre Sorhus
  • 62,972
  • 39
  • 168
  • 232
1
vote
3 answers

; as a new modifier key

I want ; to be a new modifier key. The following works almost perfectly. `;:: if GetKeyState("LShift", "P") Send `: else Send `; return `; & x:: if GetKeyState("LShift", "P") ... else ... return Only point 2. of the following…
Carucel
  • 435
  • 5
  • 11
1
vote
0 answers

PostMessage / SendMessage without interference from modifier keys

I'm trying to post/send a message to some hwnd without the interference from modifier keys (ctrl, alt, shift). Basically i want to send F1 message (without ctrl) to hwnd while im pressing ctrl (like Example 2) but with SendMessage\PostMessage. I…
joaopp
  • 11
  • 3
1
vote
0 answers

IOS Bluetooth keyboard - Special keys (ctrl, shift, arrow) in browser

Is there a browser app (or keyboard app?) that supports sending ctrl, shift etc keys to the webpage correctly? You can test it by http://keycode.info . Safari on ios do not handle ctrl, shift, alt and arrow keys as like in other platform. I want to…
Min Chan
  • 51
  • 1
  • 2
1
vote
1 answer

iOS: How do I detect modifier key state changes on an external keyboard?

My app has an optional user experience that lets a user hold down the modifier keys (shift, option, command) on an external keyboard to elicit some specific behaviors. (This experience would also be provided on-screen when a keyboard is not…
fbrereto
  • 35,429
  • 19
  • 126
  • 178
1
vote
0 answers

Capture modifier keys (control/ctrl, shift, alt) on data feature click events in google maps JS API

I have a project using the Google Maps JS API and I'm loading data onto it using the loadGeoJSON method. I also add a click listener to the map's data object. In that click listener handler, I extract the mouseEvent which tells me the x,y that the…
zeke
  • 3,603
  • 2
  • 26
  • 41
1
vote
1 answer

Detect more than 1 modifier keys (ctrl & alt) not combined

How to detect more than 1 moddifier keys? (Alt & Ctrl)? I have this working code: Private Sub PictureBox1_MouseWheel(sender As Object, e As MouseEventArgs) Handles PictureBox1.MouseWheel If ModifierKeys = Keys.Control Then If e.Delta <>…
arc95
  • 97
  • 1
  • 8
1
vote
1 answer

SL4's ListBoxDragDropTarget modifier keys (Shift, Alt, Ctrl) functionalities.

I've recently started playing with Silverlight 4, and in one of my projects I'm required to use drag & drop functionality. I use the ListBoxDragDropTarget, which is not a problem. However I was wondering what are the default use of the modifier…
Shimrod
  • 3,115
  • 2
  • 36
  • 56
1
vote
1 answer

Userscript for creating a confirmation popup whenever submitting an issue or posting a comment via pressing Ctrl+Enter(the built-in hotkey) in GitHub

Test URL: https://github.com/darkred/test/issues/new GitHub allows in the issues area for a public repo: submitting a new issue with just 1 character as title and no body, and posting a comment with just 1 character . The above happens to me…
darkred
  • 591
  • 5
  • 28
1
vote
1 answer

Why don't modifier keys' state change as expected during mouse move operations?

Wondering if anyone else is having this issue. While using a Windows 10 VM in Parallels 11 on El Capitan, it seems you can't check the modifier keys if you're in a Mouse event with a mouse key pressed. I'm observing if the mouse is currently down,…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
1
vote
2 answers

jQuery: Link changing when modifier held down - but link stops working

I'm trying to create a link that points to URL 1 normally and to URL 2 when the shift key is held down. I arrived at this code sample, which properly switches the links (as indicated in the browser status bar when hovering over the link), but…
CruftyCraft
  • 751
  • 2
  • 8
  • 15
1
vote
1 answer

How can I capture Ctrl+Shift+N?

With the help of some of the Cyberintelligensia, I am now able to use combinations of Ctrl+[some displayable key], Ctrl+Shift+[some displayable key], and Ctrl+Shift+Alt+[some displayable key] to add accented chars into a textbox. The question and…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
1
vote
1 answer

KeyEvents new KeyEvent variable?

For the life of me I cannot find any help with this on the internet. My goal is to write a function that happens when shift is held and a mouse is clicked on the application. Right now I am just focusing on shift. I have this class: public void…
Kyle Wright
  • 520
  • 2
  • 9
  • 23