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

Navigating the Content Assist List in Eclipse

Here are the ways the Eclipse documentation states you can navigate the Content Assist list: You can use the mouse or the keyboard (Up Arrow, Down Arrow, Page Up, Page Down, Home, End, Enter) to navigate and select lines in the list. But all…
volni
  • 5,196
  • 8
  • 38
  • 44
10
votes
3 answers

Adding an F5 Hotkey in C#

I'm making a windows app (WinForms) and would like my application to call a method when the user presses F5 - this should work no matter what the user is doing but they must be using the program - I don't want to use global hooks - any ideas?
joe
  • 101
  • 1
  • 1
  • 3
10
votes
3 answers

How does Windows's "Safely Remove Hardware" dialog get the "foreground love"?

Raymond has blogged about how programs can get/steal the "foreground love" by using RegisterHotkey, which, when invoked, will transfer the foreground-ness to your application. Attempts to do this manually fail miserably (e.g. using…
user541686
  • 205,094
  • 128
  • 528
  • 886
10
votes
2 answers

jQuery hotkeys...not so global

Basically, I'm using jQuery Hotkeys plugin by Mr Resig to capture and handle shortcuts like ctrl+o etc... OK, maybe I don't uderstand the concept, but I was under the impression that a ctrl+o triggered anywhere inside the document will be captured…
Christian
  • 27,509
  • 17
  • 111
  • 155
9
votes
3 answers

Debug in Rider studio. Step into not working

The problem during debug when I try to press Step into hot key. It is set to F11 and F7 by default. When I try to press F11 nothing happens. When I try to press F7 it steps by code but when it must go into the method(step into it is the command…
FX_Sektor
  • 1,206
  • 2
  • 14
  • 32
9
votes
2 answers

Intellij idea hotkey to open context menu of a file

Is there a hotkey combination to open the context menu on a file in the project tree (instead of mouse right click) ?
IKo
  • 4,998
  • 8
  • 34
  • 54
9
votes
4 answers

Register Hotkey

How would I register a global hotkey in Objective-C/Cocoa (Mac) ? For example, the hotkey I'd like to register would be Alt - Cmd - D Any help would be appreciated!
Seb Jachec
  • 3,003
  • 2
  • 30
  • 56
9
votes
1 answer

C# global keyboard hook, that opens a form from a console application

So I have a C# Console Application with a Form, which I want to open using hotkeys. Let's say for example Ctrl + < opens the form. So I got the code to handle a globalkeylistener now, but it looks like I failed by implementing it. It made a while…
Craiy
  • 143
  • 1
  • 1
  • 9
9
votes
1 answer

How do I implement Ctrl+Z / Command+Z in Java/Swing?

I'm working on a little Java applet that needs undo/redo functionality. Here's code to set up the hotkeys (works great on Windows). My question is: how do I make it use command+Z on mac? Should I just check System.getProperty("os.name") or is…
Neal Ehardt
  • 10,334
  • 9
  • 41
  • 51
9
votes
2 answers

Disabling the browser's 'ctrl+s' default function

I use jQuery-hotkeys And the following code: $(document).bind('keydown', 'ctrl+s', function(){$('#save').click()}); but I cannot disable the browser's default behavior. How do I disable it?
zjm1126
  • 34,604
  • 53
  • 121
  • 166
9
votes
3 answers

Is there a way reformat code in FlashDevelop?

Is there a way to reformat code, i.e. force correct indentation in FlashDevelop as you can do with CTRL-SHIFT-F in Eclipse?
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
9
votes
2 answers

Excel VBA to list key bindings (OnKey ?)

I am working with a large set of Excel vba scripts and some of them are bound to Ctrl-key combinations. I know how to set one at a time in the user interface for Excel: Pull up the list of vba scripts (Alt-F8), select a script, and click Options. …
Mark Goldfain
  • 731
  • 2
  • 8
  • 24
8
votes
3 answers

How to disable facebook hotkeys with Chrome extension?

I have created a Chrome extension that uses the hotkeys [Alt]+[0...9] only to discover facebook uses the same hotkeys. Is there any way possible my extension could disable facebook's hotkeys so that mine fire alone? I'm fairly certain I have…
flea whale
  • 1,783
  • 3
  • 25
  • 38
8
votes
2 answers

Global hotkey release (keyup)? (WIN32 API)

Is there a way to notice the release of a hot-key button registered with RegisterHotKey? I get a WM_HOTKEY message every time I press the hot-key but I need to know when the key was released
Crackoder
  • 115
  • 1
  • 6
8
votes
3 answers

vscode: how to change the hotkey of 'replace' and 'next match'

In the replace mode of vscode: The hotkeys of 'go to next match' and 'replace' are both enter. I want to selectively replace some words. For example, in the lower part of the image: I want to rename hidden_dim' but not hidden_dim_in`. Hitting the…
zheyuanWang
  • 1,158
  • 2
  • 16
  • 30