skar wrote:
>
> If I could somehow inherit from the table class, and have the "enter"
> keypress event to myself, then I can bubble it to the parent class
> when starting editing, while stopping it from bubbling when it's
> already editing. Is that possible?
I setup a listener like this:
>>
>> table.addListener("keypress", function(e) {
>> if (e.getKeyIdentifier() == "Space") {
>> this.debug("Space key pressed in table row:");
>> } else if (e.getKeyIdentifier() == "Enter"){
>> this.debug("Enter pressed in table ...");
>> e.stopPropagation();
>> }
>> }, this,true);
>
Now, the first Enter isn't received at all, and the celleditor is
opened. And when I press enter again, the listener is called this time
and since I call stopPropagation, it doesn't reach the table, so the
celleditor is still open, which is what I want.
However, my doubt is, why doesn't the first enter get caught by this
listener?
cheers,
skar.
--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel