Can we define the Right control key as an ACCELERATOR in the resource file ?
-
We define accelerators in the resource file like this :
IMB_MYAPP ACCELERATORS
BEGIN
"0", IDM_MY_ACTION, VIRTKEY, CONTROL, NOINVERT
ENDThis will let me use the ctrl-0 key to do "IDM_MY_ACTION". This only works for the left-control key; the right control-key does not work. Is there a way to define an accelerator for the right-control key in the resource or do I have to handle that in the code ? Thanks
I'd rather be phishing!
-
We define accelerators in the resource file like this :
IMB_MYAPP ACCELERATORS
BEGIN
"0", IDM_MY_ACTION, VIRTKEY, CONTROL, NOINVERT
ENDThis will let me use the ctrl-0 key to do "IDM_MY_ACTION". This only works for the left-control key; the right control-key does not work. Is there a way to define an accelerator for the right-control key in the resource or do I have to handle that in the code ? Thanks
I'd rather be phishing!
I have just tried this and it works with both left and right CTRL keys. It must be something to do with your system. [edit] If you look at the structure of an accelerator table (ACCEL structure (Windows)[^]) you can see that there is only a single value to represent either control key, [/edit]
-
I have just tried this and it works with both left and right CTRL keys. It must be something to do with your system. [edit] If you look at the structure of an accelerator table (ACCEL structure (Windows)[^]) you can see that there is only a single value to represent either control key, [/edit]
Yeah, at first it did not work, but for some reason it works as expected.
I'd rather be phishing!