Thanks! It appears that a customized class and the qx.bom.Shortcut is the way to go.
2011/5/20 Tino Butz <[email protected]>: > Hi, > By default qooxdoo only supports simple commands. See this demo: > http://demo.qooxdoo.org/current/demobrowser/#ui~Command.html > The command class is using the qx.bom.Shortcut class. This class does not > support multiple shortcuts (as whitespaces are not allowed - only "+" or "-" > is allowed in the string). > Like Rafael said, it would be possible to record the key sequence and react > on certain states. > Perhaps you want to write a KeyHandlerClass that registers on the key > events, records them and triggers the functions that you have registered, > when the right sequence was pressed. You can use the qx.bom.Shortcut class > to register the single commands. Shouldn't be that complex. > Tino > > Am 20.05.2011 um 07:51 schrieb Robert Nimax: > > Hi Rafael, > every widget knows about key-events like "keydown" or "keypress". > So you could handle these events, record the single events and decide > whether the current state is a certain sequence which means a certain > command. > You can implement a small proof-of-concept by using the textarea ui class > which is like a minimal text editor. > > HTH, > Rob. > >>>> Rafael Ibraim <[email protected]> 5/19/2011 4:21 >>> > Hello, I'm evaluating qooxdoo for use in a new project(so far it looks > wonderful!), but I have a rather interesting requirement: the entire > application must support "advanced" keyboard shortcuts! By "advanced" > I mean "emacs-like", for example "C-c x", "C-x C-b" and so on[1]. Is > viable(or at least possible) implement this kind of behavior in a > qooxdoo application? Anyone already tried something like that? > > Just to make it clear: I never used qooxdoo, I'm still evaluating it > so... if someone has an working example, it will help a lot. > Thanks in advance! > > > [1] For the people that doesn't use emacs, the examples mean "Ctrl+C > followeb by b" and "Ctrl+x followed by Ctrl+b". > -- > Rafael Ibraim > Oracle Database SQL Expert > [email protected] > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > <ATT00001..txt><ATT00002..txt> > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- Rafael Ibraim Oracle Database SQL Expert [email protected] ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
