keyboard combination action
I'm not sure if I'm missing something but I'm trying to create custom actions based upon keyboard combinations being pressed.
In the application menu I have the accelerator set to Ctrl+K. I have an event created so that when someone selections the particular option from the app menu it does the desired action. My issue though is how do I get it where when they Press the combination listed in the app menu for it to also do the action I have set up?
Re: keyboard combination action
Why would you list it in the app menu? D:
*Repeat While Control Is Pressed
*On K Pressed
>>Do Action
Re: keyboard combination action
Why would I list it in the app menu? To let people know that the action had a keyboard shortcut. For example, Copy had next to it Ctrl+C. That's letting people know that the keyboard shortcut for Copy is Ctrl+C. For this it's letting people know that the keyboard shortcut for this particular action is Ctrl+K.
Re: keyboard combination action
Thanks, that did the trick. I has the conditions set up wrong. I had it like:
*When key Control is pressed
*When key K is pressed
>>Do Action
Re: keyboard combination action
If you are going to use the Application Menu for the shortcuts, you need to ONLY have the event for the Menu Item Selected. It will automatically be triggered when the key combo is pressed.
Re: keyboard combination action
LB, I thought the same thing. I thought as long as an event existed to trigger the action in the application menu that MMF would automatically associate that with the key combination I selected in the menu editor. That wasn't happening though. So I figured maybe I had to create a separate event to handle the key combination.
Re: keyboard combination action
The only time it does not work is if, for instance, you were typing in an Edit Box or other control.