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
8
votes
5 answers

Does VS has any shortcut like ctrl+q in eclipse?

It returns your caret(aka cursor) to the place where you stopped writing code(very useful for fast code browsing)
IAdapter
  • 62,595
  • 73
  • 179
  • 242
8
votes
1 answer

Register more than one hotkey with RegisterHotKey

I found this little piece of code to register an hotkey: [DllImport("user32.dll")] public static extern bool RegisterHotKey(IntPtr hWnd, int id, int fsModifiers, int vlc); protected override void WndProc(ref Message m) { if…
Simondotdot
  • 83
  • 1
  • 3
8
votes
3 answers

Visual Studio Keyboard Shortcut / Hot key to Publish Current File

I'm aware of Build.PublishSelection as a shortcut to pull up the publish project window (and publish the entire project), but I would like to bind something to publish just the current file I'm editing. You can right click the file in solution…
jtubre
  • 669
  • 1
  • 8
  • 13
8
votes
3 answers

Using a hotkey to submit an HTML form?

I have a very simple HTML form, only containing a submit button and a textarea. Is there an easy way to use a hotkey to submit this form, as an alternative to pressing the button? Thanks in advance :-)
Chris
  • 2,905
  • 5
  • 29
  • 30
8
votes
4 answers

Unregistering the Alt-Tab hotkey in Windows 7

I think this problem should be easy to solve, and I'm bringing it here because I really feel like I've looked everywhere for a solution. My code is written in C# and should simply over write the Alt-Tab hotkey. This line works in XP but return…
Ward
  • 101
  • 6
8
votes
4 answers

How to emulate pressing media keys in Java?

How can I emulate pressing media keys in Java? Such as play/pause, next/previous, volume control. C# has VK_MEDIA_PLAY_PAUSE, VK_MEDIA_NEXT_TRACK and so on. Java has class Robot for working with keys, but there are no media keys.
just_user
  • 91
  • 1
  • 2
8
votes
1 answer

PyDev - Turn off autocomplete + hotkey for completion suggestions?

I am new to Eclipse/PyDev and I would like to change its default behavior. First, I would like to turn off the auto-complete suggestions window that pops up while I am typing. I just find this distracting. I actually managed to do this by changing a…
pnips
  • 153
  • 1
  • 7
8
votes
2 answers

Android Studio collapse all shortcut for mac

What would be the code folding shortcut on a mac for Android Studio? Is there a default shortkey for this, or should we define our own? It would be very handy to toggle, specially when working on a smaller screen.
TomCB
  • 3,983
  • 9
  • 40
  • 66
8
votes
2 answers

How to star a Spotify song with Autohotkey while it's minimized?

How to star a Spotify song while it's minimized? Okay so the Spotify application on Windows does not have inbuilt support for global hotkeys, and very basic hotkeys even when the application window is currently active. Frustratingly 'starring' the…
bluesatin
  • 93
  • 2
  • 6
8
votes
3 answers

Hotkey commands for Silverlight in MVVM?

I'm trying to fire commands based on keystrokes in Silverlight. As I understand you cannot use AccessKey or AcceleratorKey in Silverlight. Also it looks like the might be helpful attached property InputBindings does not work either. I started…
RandomEngy
  • 14,931
  • 5
  • 70
  • 113
8
votes
5 answers

Dynamically Create AutoHotkey Hotkey to Function/Subroutine

The AutoHotkey command Hotkey allows for the creation of dynamic hotkeys at runtime, but its syntax and documentation seems to limit it to built-in or existing labels/subroutines, which makes it much less useful: Hotkey, KeyName [, Label,…
Synetech
  • 9,643
  • 9
  • 64
  • 96
8
votes
1 answer

How can I handle a shortcut key in every WPF window?

I want to open the help file to a page based on some custom logic. How can I handle the user pressing F1 on all of my windows (main window and modal dialogs) ? I know how to handle F1 in a single window, but can this be done globally, so I don't…
Jeno Csupor
  • 2,869
  • 6
  • 30
  • 35
8
votes
1 answer

global hotkeys in Java

I'm trying to make an app that uses global hotkeys, and I've been stuck in it for about 2 days trying to figure it out, before deciding to use jintellitype api. I always get a problem when I run the example provided on Jintellitype's website : …
a.u.r
  • 1,253
  • 2
  • 21
  • 32
7
votes
5 answers

Winforms MenuStrip Underlined Hotkey Letter

Typically the hotkey letters on a MenuStrip are underlined. (&File, &Open, etc) On a project I'm working on the underline shows up in the designer, but not at run time. I can't find the property that controls this. Anyone out there know?
Jeff
  • 8,020
  • 34
  • 99
  • 157
7
votes
1 answer

Eclipse: Ctrl + Shift + ? hotkeys in Linux / KDE?

I've recently installed Eclipse Helios (Java Developers Edition, vanilla from www.eclipse.org) on my Arch Linux/KDE 4 machine to aid navigation in a large Java project. The problem is, many key bindings in Eclipse tend to use Ctrl + Shift as a…
vsinitsyn
  • 113
  • 7