Beau,

Signal works beautifully. The problem sits within the Controls.js:

onKeyPress: function (event) {
        if (this.active) {
            if (event.keyString == "KEY_TAB" || event.keyString == "KEY_RETURN") {
                 this.selectEntry();
                 MochiKit.Event.stop(event);
            } else if (event.keyString == "KEY_ESCAPE") {
                 this.hide();
                 this.active = false;
                 MochiKit.Event.stop(event);
                 return;
            } else if (event.keyString == "KEY_LEFT" || event.keyString == "KEY_RIGHT") {
                 return;
            } else if (event.keyString == "KEY_UP") {
                 this.markPrevious();
                 this.render();
                 if (MochiKit.Base.isSafari()) {
                     event.stop();
                 }
                 return;
            } else if (event.keyString == "KEY_DOWN") {
                 this.markNext();
                 this.render ();
                 if (MochiKit.Base.isSafari()) {
                     event.stop();
                 }
                 return;
            }
        } else {
            if (event.keyString == "KEY_TAB" || event.keyString == "KEY_RETURN") {
                return;
            }
        }

There is no "event.keyString" within MochiKit.Signal, that should be event.key().string; and there is also no KEY_RETURN, that is called "KEY_ENTER" .....

So I started debugging Controls.js from the SVN Head, which is there by Error as I found from this group. :)

Just before I add to much work to it, I asked if somebody has done this allready :)

Thanks for caring,

Harald



On 7/31/06, Beau Hartshorne <[EMAIL PROTECTED]> wrote:
On 31-Jul-06, at 8:27 AM, GHUM wrote:

> (event handling "onkeypress" is not working with MochiKit.Signal,
> wrong
> attribute-Access to event-object)

Signal should work. What's wrong with it? Can you post a complete
example?

Thanks,
Beau



--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Reinsburgstraße 202b
70197 Stuttgart
0173/9409607
-
Let's set so double the killer delete select all.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to