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

Global hotkeys in WPF working from every window

I have to use hotkeys which will be working from every window and pulpit. In winforms I used: RegisterHotKey(this.Handle, 9000, 0x0002, (int)Keys.F10); and UnregisterHotKey(this.Handle, 9000); and protected override void WndProc(ref Message…
cadi2108
  • 1,280
  • 6
  • 19
  • 43
16
votes
1 answer

Where is the ALT+UP/DOWN (move line) setting in Visual Studio 2017?

I installed Resharper 2017 for VS2017, in the first run it asked about hotkey setup and I chose VS hotkeys. I tried Resharper and decided to uninstall it. Now ALT + UP / DOWN doesn't move lines! How can I fix it? What option should I check.
Dork
  • 1,816
  • 9
  • 29
  • 57
16
votes
4 answers

Is there a "Go To Variable Type Declaration" function for C# in Visual Studio 2015 or a free plugin which does it?

void MagicalFunction(MagicalType magic) { ... magic.Poof("something"); ... var foo = magic.GetFoo(); ... } Pressing the hotkey on variable magic would navigate to definition of type MagicalType. Pressing the hotkey on foo would…
JBeurer
  • 1,707
  • 3
  • 19
  • 38
16
votes
5 answers

How can I send keyboard shortcut Alt + Shift + Z (hotkey) with Selenium 2?

I am trying send a shortcut with Actions.sendKeys, but it isn't working. (New Actions(driver)).SendKeys(Keys.ALT, Keys.SHIFT, "z");
Volkov Pavel
  • 195
  • 1
  • 2
  • 5
15
votes
3 answers

intellij - way to do the eclipse CTRL+ALT+UP duplicate lines upwards and end up with carets in duplicated field?

I want to duplicate just like the standard CTRL+D hotkey in intellij, but in the eclipse version was a way to end up in the duplicated lines with the caret. E.g. the original is at the bottom and you are set to edit the duplicated lines at the top…
Toskan
  • 13,911
  • 14
  • 95
  • 185
15
votes
3 answers

How to disable F12 to debug application in Visual Studio 2012

If I hit F12 while my application runs under Visual Studio in debug mode, the WM_KEYDOWN never reaches my event loop, but it immediately triggers a breakpoint. Is it possible to disable this feature, or reassign it to another, less conflicting…
digory doo
  • 1,978
  • 2
  • 23
  • 37
14
votes
4 answers

Resharper Hotkeys

I just started using resharper and I am trying to learn all the hotkeys - Is there a list of all the hotkeys somewhere for the standard install? Something this is possibly in printable format.
Ted Smith
  • 9,415
  • 16
  • 50
  • 52
14
votes
6 answers

Listen on ESC while reading Console line

I want to read an users input into a string while still reacting on ESC press at any time, but without defining a system wide hotkey. So when the user types e. g. "Test Name" but instead of confirming with ENTER presses ESC he should be led back…
AstronAUT
  • 639
  • 2
  • 7
  • 11
13
votes
3 answers

How can I set tmux hotkey as Ctrl-, that is, Ctrl+comma

I've got some trouble when setting my preferred tmux hotkey on Mac OS X. The most common hotkeys that invokes tmux's magics are CTRL+A and CTRL+B. But I would rather select other keystrokes for the following reasons: C-a is the global hot key for…
Jianwen W.
  • 3,919
  • 4
  • 18
  • 17
13
votes
4 answers

How to navigate to a closing bracket with ReSharper?

Say you have a large amount of C# code in an if statement. If you place your carat next to the opening bracket, is there a hotkey or something in ReSharper that will automatically take you to the closing bracket?
Dan Appleyard
  • 7,405
  • 14
  • 49
  • 80
13
votes
3 answers

Eclipse: how to switch between console window and editor?

I'm using Eclipse for Python and R development. How can I jump between editor tab and console window using a keyboard shortcut / hotkey?
tesmp
  • 621
  • 4
  • 10
  • 12
13
votes
6 answers

Setting up Tortoise SVN Windows 7 hotkeys

How would one go about setting up some hotkeys for commonly used SVN actions such as diff? Currently to view diff, I have to select file(s), then right click, navigate to TortoiseSVN and then select Diff action. Quite a few steps for something used…
Sint
  • 1,580
  • 3
  • 21
  • 38
13
votes
2 answers

Cocoa NSStatusBar Global HotKey

I have created an NSStatusBar cocoa application which sits in the system status bar. I want to assign a hotkey so that when pressed it toggles my applications and show the menu. Is this possible?, In my searching and experimenting I have found a few…
Craig
  • 171
  • 1
  • 5
13
votes
3 answers

Gnome Shell Extension Key Binding

What is the simplest way to (globally) bind a key combination (e.g. +A) to a function in a gnome shell extension? Inspecting a couple of extensions, I ran into the following code: global.display.add_keybinding('random-name', …
13
votes
1 answer

Make a "hotkey" to focus a TextBox in WPF

I am trying to make a hot key (ie Ctrl + Y) that will change the focus to a text box. I am a transplant from Delphi, and this is confusing me. In Delphi 5 this was so, so easy. (On the caption of the label you could just add an & before the letter…
Vaccano
  • 78,325
  • 149
  • 468
  • 850