Hello,
I have Qooxdoo 0.7.3 application that displays database records to the user.
I've setup a couple of qx.client.Command with shortcuts to delete the current
record ("DEL") and view details about the current record ("ENTER") and hooked
up corresponding toolbar buttons and menu options to these commands.
The problem comes about because I also have a text field which allows my user
to search for database records. If the user types in this field and happens to
hit "DEL" or "ENTER" (which is likely), the associated command is invoked
instead of my seach action (which I'd like to invoke on a "keydown" event when
the user hits enter in the text field).
Shouldn't the widget in focus get a chance to handle the key event first (and
stop its propagation) before falling back to the global command's execute? I
looked at qx.event.handler.EventHandler and it looks like it the following
check is done before it dispatches the event to other listeners:
// Check for commands
if (vType == "keydown") {
this._checkKeyEventMatch(vKeyEventObject);
}
Is there a way around this? I'd rather not change my shortcuts.
Thank you,
Peter
_________________________________________________________________
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel