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
12
votes
4 answers

add try catch around highlighted code

I'm refactoring some code and there are tons of functions with no try catch statements that are causing problems. Is there a keyboard shortcut in VS 2010 to allow me to select an entire function or highlighted code and add a try catch end try…
Khalid Rahaman
  • 2,292
  • 3
  • 28
  • 40
12
votes
7 answers

What's the easiest way to make a hotkey for windows?

For example , you push Ctrl+V and insert the buffer content into the window. How can I create my own hotkeys like that? Sorry for noobish question.
Eugene
12
votes
1 answer

Hot keys to avoid

I want to add a hot key that can be used while an input has focus and will be used to toggle a search result. I guess this question has been more generalized in that I would like to know which hotkeys to avoid so as to not conflict with anything. I…
Mottie
  • 84,355
  • 30
  • 126
  • 241
12
votes
3 answers

What is the hotkey for formatting XAML in VS2010?

The hotkey Ctrl+E,Ctrl+D works for formatting C# code only, but not for XAML for some reason. Does anybody know what the hotkey is for it?
Alexandre
  • 13,030
  • 35
  • 114
  • 173
12
votes
1 answer

Ctrl+Shift+Space equivalent in Qt Creator?

In Visual Studio (with VAssistX at least), I can use Ctrl+Shift+Space to show this kind of tooltip for any function in which the cursor is currently in. In Qt Creator this tooltip is shown only when you first type the function call, so I have to go…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
12
votes
4 answers

Change hotkey for autocomplete selection

In Eclipse, I find it pretty annoying that Enter is the hotkey that selects an item from the Content Assist/Autocomplete list. Especially in PyDev where there is no end-of-line semicolon, pressing enter for a new line will instead give me whatever…
ack
  • 14,285
  • 22
  • 55
  • 73
12
votes
3 answers

Hotkey (not global) in Windows Forms .NET

In my Windows Forms application I would like one special button to run a test everytime I press it. There are dozens of controls so implementing it in each one takes too much time. Is there a way I can set a hotkey so, no matter what I am doing in…
user34537
12
votes
1 answer

Putting hotkey/shortcut text next to toolstrip menu items in winforms

I want to be able to show the hotkey combination assigned to a toolstrip menu item in winforms. For instane, in any program (even your browser settings menu) you can see various menu items, and generally, aligned to the right of their item, is their…
jwarner112
  • 1,492
  • 2
  • 14
  • 29
11
votes
1 answer

How to modify hotkey binding for mathematica system menu items?

This problem has bothered me for a long time.As we know,in mathematica we can modify hotkey bindings through two files "KeyEventTranslations.tr" and "MenuSetup.tr",but some hotkeys that by default bind to system menu items(for example, in windows:…
kptnw
  • 213
  • 1
  • 6
11
votes
5 answers

Shortcut for Replace button in "Find and Replace" dialog

I call up Find and Replace dialog with Ctrl+H. On F3 it finds the result but then I must hunt the Replace button using the mouse. And on every new find, it changes the screen position. Is there any way to use this dialog using only keyboard? It…
Miroslav Zadravec
  • 3,510
  • 5
  • 24
  • 35
11
votes
4 answers

Set global hotkey with Python 2.6

I wanna setup a global hotkey in python 2.6 that listens to the keyboard shortcut ctrl + D or ctrl+ alt+ D on windows, please help me
arthur
  • 111
  • 1
  • 1
  • 3
11
votes
5 answers

Copy and Modify selected text in different application

I have a windows application running at the backend. I have functions in this applications mapped to hot keys. Like if I put a message box into this function and give hot key as Alt+Ctrl+D. then on pressing Alt, Ctrl and D together the message box…
Vinod
  • 31,933
  • 35
  • 96
  • 119
11
votes
6 answers

XCode 5 -- Jump To Previous Cursor Location

I would like to jump to the previous cursor position within a file in XCode 5 (with either a keyboard hotkey or a drop-down menu path). This SO post worked for XCode 3: Does XCode have a cursor navigation stack like Visual Studio? But for XCode 5, I…
rizzes
  • 1,532
  • 20
  • 33
10
votes
1 answer

Detecting Ctrl+V with RegisterHotKey but not intercepting it

I need to detect when a user presses Ctrl+V(regardless of window focus - my app will likely be minimised) but I must not stop the actual paste operation. I have tried a few things: (I am successfully binding to keystrokes with RegisterHotKey) I…
Ozzah
  • 10,631
  • 16
  • 77
  • 116
10
votes
2 answers

How collapse all XAML code sections at once?

After short reach i found answers that CTRL+M, CTRL+L do that but this only works on specific block and not all the code sections like Ctrl + m + O under code behind.
mot rer
  • 153
  • 2
  • 9