A set of one or several keys to quickly access a menu or function. It is also called a hot key.
Questions tagged [acceleratorkey]
34 questions
8
votes
4 answers
Menu Accelerator Keys Not Showing Up (Delphi 2009)
I've tried my best and cannot figure out what happened here. It worked fine in Delphi 4. After upgrading to Delphi 2009, I don't know if this is the way it is supposed to work, or if it's a problem:
This is what my program's menu looks like in…

lkessler
- 19,819
- 36
- 132
- 203
5
votes
1 answer
How to remove the accelerator hot key '&' character?
I'm using the '&' character for using accelerator keys with my TLabel controls.
In this way, the user can press Alt+Character after the & in order to focus controls on the form.
Example:
var
MyLabel : TLabel;
MyEdit : TEdit;
begin
MyEdit :=…

Fabrizio
- 7,603
- 6
- 44
- 104
5
votes
1 answer
Pass through accelerator key while modeless dialog window up
We have a very large in-house MFC app. It has a main window with a menubar, and hundreds of unique subwindows (without menubars) that display on top of the main window (not all simultaneously). These subwindows are implemented as CDialogs but run…

StilesCrisis
- 15,972
- 4
- 39
- 62
3
votes
1 answer
Handling accelerator in a dialog
What step am I missing?
I have an accelerator table:
I have added a member variable to my app class:
HACCEL m_hAccel;
I have added the following override:
BOOL CMeetingScheduleAssistantApp::ProcessMessageFilter(int code, LPMSG lpMsg)
{
if…

Andrew Truckle
- 17,769
- 16
- 66
- 164
3
votes
1 answer
MFC "Hidden" or "Default" Function Key Accelerators?
I have a pretty normal MFC SDI application.
I recently started using things from the new MFC feature pack (eg CMFCToolbar), and after all these changes, I am seeing some unexplained behavior in keyboard shortcuts.
It seems some resource IDs have…

sg_man
- 763
- 1
- 6
- 14
3
votes
1 answer
Java's setFocusableWindowState and setAccelerator don't play nicely
Under Windows 7 I have a Java program which is started with a window state of JFrame.ICONIFIED and I have a requirement that it doesn't steal the focus when it loads.
I accomplished this by setting setFocusableWindowState to false before calling…

chrixm
- 942
- 6
- 26
3
votes
1 answer
Is it possible to have a KeyCodeCombination with no modifier? or do I need to use something else?
I'm trying to add Accelerators to some scenes, but I would like a simple one-key accelerator in some instances. I am only familiar with KeyCodeCombination, and it doesn't seem to allow me to use no modifier.
Curiously, I have used the modifier + ANY…

John
- 165
- 2
- 3
- 15
3
votes
1 answer
.net Label accelerator key event
Basic question, but I can't figure it out...I have a label with an accelerator key set (e.g. "&Add") and I want to give focus to a textbox when that shortcut, Alt+A, is pressed. What event does this correspond to? I tried the click event but that…

toasteroven
- 2,700
- 3
- 26
- 35
3
votes
4 answers
Custom keyboard shortcut in java
I am developing a java swing application. I want to add a keyboard shortcut say CTRL + H. This should perform the same action performed by jButton1 when clicked.
This shortcut should behave in the same way even when jButton1 is not focused.
I…

Gadoya
- 137
- 1
- 3
- 7
2
votes
1 answer
Accelerator commands not working when focus lost
I have the following swing application,
which has a customized JMenuBar.
The code goes below,
public class MenuBarTest {
public static void main(String[] args) {
new JFXPanel();
final JFrame frame = new JFrame();
…

user3164187
- 1,382
- 3
- 19
- 50
2
votes
1 answer
mfc accelerators Ctrl + doesn't work
I have mfc application where I defined keyboard ACCELERATORS
It works fine when I use alphanumeric characters, but I want to define an accelerators that zoomin/zoomout while pressing on the keys +/-
so I defined it as the following and it works…

mizo hazem
- 31
- 8
1
vote
1 answer
Assigning hotkeys to DigitalMicrograph functions and scripts?
In GMS2, there was an area to easily assign hotkeys to certain built-in functions (eg. Save As..., Rotate). It seems that was removed in GMS3. Is it possible to script a hotkey for those items and any installed scripts?

user18605457
- 11
- 1
1
vote
1 answer
Accelerator keys not working when modeless popup has the focus
My main CDialog sometimes displays a child modeless dialog like this:
It is only displayed if the user has configured it to automatically display.
It gets displayed via the main dialogs OnInitDialog where this function is called:
void…

Andrew Truckle
- 17,769
- 16
- 66
- 164
1
vote
0 answers
Using WPF keyboard accelerators with international keyboards
I have a WPF app in which I use the standard underscore format (e.g. "Open _File") to associate alt-key presses with my menu items. However, when I set my keyboard to, say, Arabic, it does not work as it seems to be using the higher level…

David Deutsch
- 17,443
- 4
- 47
- 54
1
vote
0 answers
Java SWT: Accelerator shortcut not working on PopUp context menus
I'm adding a PopUp menu to one of my widgets, a Table. It is not working! I only achieved to make work accelerator shortcuts if they are on top menu bar items, and not in popup context menu items. Why?
This is my code, but the table is inside a…

NullPointerException
- 36,107
- 79
- 222
- 382