Andras, Look at the mapping for the Enter key.
- Andrew On Sun, 2007-02-11 at 01:39 +0100, Imre András Róbert wrote: > Hi, > > I'd like to define shortcut keys for product buttons. > For example, pressing Alt+G would act as pressing the > button GIZMO 1. This would enhance usability. > > Doc comments in Keyboard.java tell me that key to code > mapping is in jpos.xml, and code to button mapping is > in buttonevents.xml. > > numeric.xml tells me widget id (numOne) and widget text (1) > > buttonevents.xml tells me widget id (numOne) and handler (triggerOne > method of org.ofbiz.pos.event.NumericEvents) > > I still dont see the code to button mapping as the doc comment > indicates in Keyboard.java. > > Q1/ It seems to me that jpos.xml contains only additional > key to code bindings. Where are the other codes? E.g. > what happens when I press '1'? > > Q2/ I dont see any codes in buttonevents.xml. Where is > the code to button mapping? > > Q3/ Is there a dtd/schema available for these XUI cfg > files? (Would help to assess the capability of these > configs instead of making guesses based on gathered > cfg files) > > > Thanks, > András > > -- Kind Regards Andrew Sykes <[EMAIL PROTECTED]> Sykes Development Ltd http://www.sykesdevelopment.com
