integrate customization.xml and shortcuts.xml

User 62a37f4796

26-01-2009 16:43:24

In my custom environment, one of the things I want to do is disable copy and paste operations. I can figure out how to do this in a stand-alone setting using the customization.xml and shortcuts.xml files (something that can easily be undone by students), but I can't figure out how to do that server-side using the menuconfig.xml file. An applet using this file seems to simply ignore the shortcut statements if I include them with the customization parameters. What is the proper way to go about this?

ChemAxon 909aee4527

26-01-2009 18:13:32

Dear Michiel,


to disable the Open command in the Student Exam example we use a custom shortcuts.xml file, which we set with a paramater:


Code:
msketch_param("shortcuts", "/examples/applets/sketch/studentexam/shortcuts.xml");
             


The file can be found here: http://www.chemaxon.com/marvin/examples/applets/sketch/studentexam/shortcuts.xml


The last content row in the xml file is the most important for you:


Code:
<keyboard-shortcut key="control O" commandID="" scheme="default"/>            
 


The shortcut key should be enumerated with an empty commandID to disable the shortcut.


Kind regards,


Judit

User 62a37f4796

26-01-2009 19:32:15

That approach seems to work for ctrl-O, but ctrl-C and ctrl-V appear unaffected.





I'm using the attached shortcuts.xml file with the relevant shortcuts nullified.

ChemAxon 909aee4527

29-01-2009 15:45:29

We will investigate it.

ChemAxon 909aee4527

30-01-2009 09:32:48

Thank you for the bug report. The fix will be available from Marvin 5.1.5 and 5.2 versions.