Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 68
Registered: ‎11-12-2015
Accepted Solution

Defining shortcut for end of editing or other default GMSC functions

Hi all,

 

I know that there is a possibility to define shortcut for custom java plugin in GMSC. But is it possible to define custom shortcut also for some standard GMSC function? We would need that to end the editing mode - so the user does not need to click the diskette icon, but could do that with CTRL+S or something like that.

 

Thanks,

 

Tereza

Highlighted
Frequent Contributor
Posts: 90
Registered: ‎10-13-2015

Re: Defining shortcut for end of editing or other default GMSC functions

Hi Tereza, 

 

as we have discussed it. I guess there is only one way and I think it was confirmed by Markus as well. 

 

Modify/extend or write own EditActions.java and add shortcut parameter to the action GE_SAVE:

 

@Action(shortCut = "ctrl s", icon = "save.svg", languageKey = "edit.save")
public void GE_SAVE(RPAction a) {
	editPlugin.save();
}

Regards,

Jakub

 

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.