|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
How do get Key arrow down / up event in table?Hi,
I'm using a qx.ui.table.Table with qx.ui.table.model.Simple. How can I register to be notified when somebody scrolls up/down the table with the 'The Up Arrow key' or 'The Down Arrow key' keys? The current table line is nicely highlighted but I can't find out how to get the events. (I don't mean scrolling in the scrollbar but directly in the table). Thanks for some enlightment, Marcel ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: How do get Key arrow down / up event in table?Have you tried listening to a generic "keypress" event and then checking
for the two keys you're interested in? T. Marcel Ruff wrote: > Hi, > > I'm using a qx.ui.table.Table with qx.ui.table.model.Simple. > > How can I register to be notified when somebody > scrolls up/down the table with the 'The Up Arrow key' or 'The Down Arrow > key' keys? > The current table line is nicely highlighted but I can't > find out how to get the events. > (I don't mean scrolling in the scrollbar but directly in the table). > > Thanks for some enlightment, > > Marcel > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@... > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: How do get Key arrow down / up event in table?thron7 schrieb:
> Have you tried listening to a generic "keypress" event and then checking > for the two keys you're interested in? > Thank you this worked out fine. Here is a code snippet for others to reuse: /** * Get notification when user scrolls up/down with Up or Down Arrow Keys * @param {qx.event.type.KeySequence} e Event on key press * e.getType() = "keypress" * e.getKeyIdentifier() = "Down" for Arrow down * e.isShiftPressed() = true if Shift was pressed * e.getCurrentTarget() = qx.ui.table.Table * @see http://demo.qooxdoo.org/current/apiviewer/#qx.event.type.Dom * @see http://demo.qooxdoo.org/current/apiviewer/#qx.event.type.KeySequence~getKeyIdentifier * To remove again (must be called on same object): * var success = table.removeListenerById(this.keypressListenerId); */ this.keypressListenerId = table.addListener("keypress", function(e){ this.debug("Event keypress e=" + e + " identifier=" + e.getKeyIdentifier() + " isShiftPressed=" + e.isShiftPressed()); var ident = e.getKeyIdentifier(); if (ident == "Up" || ident == "Down") { var rowNum = table.getFocusedRow(); // ... } }, this); > T. > > Marcel Ruff wrote: > >> Hi, >> >> I'm using a qx.ui.table.Table with qx.ui.table.model.Simple. >> >> How can I register to be notified when somebody >> scrolls up/down the table with the 'The Up Arrow key' or 'The Down Arrow >> key' keys? >> The current table line is nicely highlighted but I can't >> find out how to get the events. >> (I don't mean scrolling in the scrollbar but directly in the table). >> >> Thanks for some enlightment, >> >> Marcel >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@... >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> >> >> > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@... > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- Marcel Ruff http://www.xmlBlaster.org http://watchee.net Phone: +49 7551 309371 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
| Free embeddable forum powered by Nabble | Forum Help |