Any tricks how to make menu shortcuts like: Ctrl+W, E

  • Thread starter Thread starter Jan
  • Start date Start date
J

Jan

Hi,

I would like to have a View menu like the one in VS(2005), where I can have
"two-key" shortcuts (e.g. Ctrl+W followed by E or Ctrl+E).

Any suggestions how to do that?

Thanks, Jan
 
Hi,

I would like to have a View menu like the one in VS(2005), where I can
have
"two-key" shortcuts (e.g. Ctrl+W followed by E or Ctrl+E).

I haven't seen any built-in support for something like that. So you would
most likely have to handle the key presses yourself, in whatever
control/form is relevant for the input. Upon receiving the first key
press, you'll have to set some state (presumably also displaying some
status to the user, such as changing text in a status bar or something)
and then upon receiving the second key press, if that state is set, handle
the key press as the completion for the command.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top