Pages: 1
Print
Author Topic: is it possible to track the keypress event on XMetal editor?  (Read 886 times)
biswajitsr
Member

Posts: 44


« on: June 28, 2010, 12:48:09 AM »

is it possible to track the keypress event on XMetal editor?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1552



WWW
« Reply #1 on: June 28, 2010, 12:46:46 PM »

There is no OnKeyPress event, however, you may assign a particular key combination to a macro so that when the user presses that key combination the macro will run, for example: Ctrl+Alt+F1.

If you have XMetaL Developer then it is easy to assign a particular shortcut to each macro in your project using the properties window.

If you are building your MCR files by hand with a text editor of some kind, then the value to set is called "key" inside the <MACRO> element. For an example please see the journalist.mcr file in the Macros folder and look for the "Insert Subsection" macro which in that example is assigned the key combination "Ctrl+Alt+S".

Perhaps if you can give us some more information on what you are doing we can try to offer some suggestions.
Logged
Pages: 1
Print
Jump to: