Questions tagged [hotkeys]

Hotkeys provide quick access to user interface application or system actions via combinatorial key presses.

Good software design assumes no point-and-click device present, and allows the user to access all application commands via the keyboard.

On Windows, main menu shortcuts are usually indicated by it's underlined letter, called a mnemonic. They are activated like so:

  • hold Alt
  • tap the mnemonic
  • release Alt

Menu item shortcuts could have mnemonics as well, and are activated by pressing their mnemonic key (no Alt-modifier necessary at this point). These menu items may also have application-wide shortcuts, normally displayed next to the menu item itself.

Some applications implement system-wide global shortcuts, which activate regardless of which application has the user's focus. These are called hotkeys, so see the [hotkey] tag for those questions.

Shortcuts can consist of a combination of Alt/Option, Ctrl, Shift, (on Macs), and function and character keys. Some applications use key-of-chord like shortcuts, where you press a combination (chord) of the above keys in sequence.

Consult the application's user manual for details on what shortcuts it provides.

Useful Links

1159 questions
-1
votes
1 answer

Looking for refresh key

When I edit a formula bar I press f2 then use arrow keys to change data to see if it is working as expected. When I change data all I know how to do is press enter. I then need to press arrow key to go back to cell, F2 again, use arrow keys just to…
-1
votes
1 answer

Ctrl + Z not undoing on Ubuntu Gnome OS

Recently I've got into some trouble using Ubuntu GNOME OS (16.04), my Ctrl+Z shortcut to undo isn't working at all. It normally does work just fine, so I'm guessing I just broke something but couldn't figure out what exactly. Tried to search on…
Souchy
  • 15
  • 2
  • 7
-1
votes
1 answer

Globally identify last time modifier key was pressed

I have a bit of an odd question pertaining to Windows: is there any way to globally determine the last time that any key, or in particular, the modifier key (aka alt) was pressed without resorting to drivers or kernel-mode code? Some background: I…
Mahmoud Al-Qudsi
  • 28,357
  • 12
  • 85
  • 125
-1
votes
1 answer

Reenable (windows)keys after another program has disabled it

Quake3 has disabled the alt and windows keys. Is there any way to reenable them even while quake3 is running? I need those keys even while I have the game open. They way I think it works is that the game registers a hotkey using RegisterHotKey and…
lava
-1
votes
1 answer

Create a script in Windows 7 that controls volume

I'm relatively new to programming and I want to make a script that controls the volume of my pc, linkt to hotkeys. What I want it to do specifically is whenever I press a key on my keyboard (i.e. ctrl + Alt + arrow up), it turns the volume to 75%…
Nico V
  • 107
  • 1
  • 9
-1
votes
2 answers

Code for multiple hotkeys in Javascript

I have an application with 3 keyboard shortcuts. They only get fired if the focus is within a row on a grid, so I have added a listener to handle this: if (grid) { var host = grid.hostElement; //handle the keydown event …
alemus
  • 314
  • 1
  • 2
  • 17
-1
votes
1 answer

How to register complex hotkeys

I have a very long list of things I want to trigger with hotkeys in windows. (Unmuting, Playing a soundfile, muting). I have more than 100 soundfiles I want to reach that way, so the normal combinations of windows-hotkeys are not enough (since I do…
Thomas M.
  • 1,496
  • 1
  • 10
  • 21
-1
votes
2 answers

Assigning a Hotkey in Autoit

I want to use space bar to "click" a specific button in a window with autoit (without focusing the program?), like a "start" button in a game. I tried to use ControlClick function but It's doing nothing by the way. I think i'm doing something…
-1
votes
1 answer

How to run a keyboard shortcut via a file?

Certain programs for Windows have specific keyboard shortcuts that execute specific functions. I was wondering if there is a way to create a small file that can activate any shortcut by clicking on it? Example: Win+C opens up the charms bar in…
-1
votes
1 answer

WPF Commands. Textbox does not handle char mapped as a hotkey

I'm stuck with wpf commands and "non-trivial" hotkeys. I want to map "+" key to some command. Within i want it to keep working with any textbox. Below is the sample Commands.cs public static class Commands { private static readonly…
garf1eld
  • 104
  • 6
-1
votes
1 answer

Can someone help me with this hotkey script?

Okay so i wanted to make a script that when the hotkey is pressed it moves your mouse down a few pixels. I've tried to do it myself but i just don't understand it. It can be a script or program thanks,
-1
votes
1 answer

Global hotkey taking exclusive use of keys

I'm currently using this code for hotkey manager that i found on another post here: public class HotKeyReader { public static event EventHandler HotKeyPressed; public static int RegisterHotKey(Keys key,…
Tristan Cunningham
  • 909
  • 2
  • 10
  • 24
-1
votes
3 answers

KeyDown KeyEventArgs won't work

I am trying to include HotKeys in my program but I don't know how to execute this code: private void Form_KeyDown(object data, KeyEventArgs e) { if (e.KeyCode == Keys.Insert) { timer1.Stop(); } }
user3002135
  • 237
  • 1
  • 4
  • 15
-1
votes
1 answer

C# Forms - Buttons with multiple texts, and image

I want to create buttons with two texts: one left (text label itself) and one right (hotkey) aligned, and possibly an image. The screenshot below is from a similar application (not mine!) It would be nice to support multiple lines of text, just…
Victor Gomes
  • 184
  • 7
  • 15
-1
votes
1 answer

how to enable a hotkey with a button in html

i am currently making a static webpage this page will have a lot of text and i want the users to have the ability of searching exactly as they would do with the find feature of a browser(ctrl+f) i found a couple of javascript files that could open a…
firstroad
  • 57
  • 1
  • 1
  • 9