key binding problem

View: New views
2 Messages — Rating Filter:   Alert me  

key binding problem

by Narayan Singhal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i have developed a "toggle-comment" feature in a custom language. I am trying to map it to D-SLASH (So in Mac Command-SLASH) works for toggling the comments. It is not working because it is already mapped to Java toggle comment functionality. This custom language files are part of the Java project. How can i change so that it works in .java file and also .custom file?

Thanks,
Narayan

Re: key binding problem

by Vita Stejskal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Narayan Singhal wrote:
> i have developed a "toggle-comment" feature in a custom language. I am
> trying to map it to D-SLASH (So in Mac Command-SLASH) works for
> toggling the comments. It is not working because it is already mapped
> to Java toggle comment functionality. This custom language files are
> part of the Java project. How can i change so that it works in .java
> file and also .custom file?
D-SLASH is bound to 'toggle-comment' action for all editors (mime
types). I think the only thing you need to do is to name (Action.NAME)
your action 'toggle-comment' and register it from YourKit.createActions().

-vita