Re: [qooxdoo-devel] Tab completion

2007-09-19 Thread johnl
Fabian, Thanks for the help. I found that stopPropagation by itself didn't work, and neither did preventDefault, but if I called them both I got the desired result. I don't understand why this is, but I'm very happy that it works! Thanks again. David Fabian Jakobs wrote: > Hi John, > > you h

Re: [qooxdoo-devel] Tab completion

2007-09-19 Thread Fabian Jakobs
johnl schrieb: > Fabian, > > Thanks for the help. I found that stopPropagation by itself didn't work, > and neither did preventDefault, but if I called them both I got the > desired result. I don't understand why this is, but I'm very happy that > it works! > > Yes, you need both. stopPropag

Re: [qooxdoo-devel] Tab completion

2007-09-19 Thread Fabian Jakobs
Hi John, you have to prevent the browser's default behaviour (focus the next element) by calling e.preventDefault() This should suppress the focus change. Best Fabian > I'm trying to add tab completion (shell style) to a textArea, but the > problem I'm having is I can't get stop the focus fro

Re: [qooxdoo-devel] Tab completion

2007-09-18 Thread Raul Gutierrez S.
On Tue, 2007-09-18 at 18:48 -0500, johnl wrote: > I'm trying to add tab completion (shell style) to a textArea, but the > problem I'm having is I can't get stop the focus from being moved from > the textArea when tab is pressed. Here is the code I'm using: > > this._searchBox.addEventListener('k

[qooxdoo-devel] Tab completion

2007-09-18 Thread johnl
I'm trying to add tab completion (shell style) to a textArea, but the problem I'm having is I can't get stop the focus from being moved from the textArea when tab is pressed. Here is the code I'm using: this._searchBox.addEventListener('keypress', this._onKeyPress, this) this._searchBox.addEvent