What steps will reproduce the problem?
The problem can be demonstrated with the addonsgallery.
1. Click the AutoComplete link from the addonsgallery and enter some text in the "Enter a colour:" text box, eg "Br"
2. Press the down-arrow key repeatedly. The selected item moves down through the list and cycles back to the top.
3. Press the up-arrow key repeatedly. The selected item moves up the list, but doesn't cycle back to the bottom.
What is the expected output? What do you see instead?
Repeated presses of the up-arrow key should cycle through the list, returning to the bottom when it hits the top.
What version of Pyjamas are you using? which svn revision number?
On what operating system?
Author: Luke Leighton <firstname.lastname@example.org>
Date: Mon Aug 30 16:39:36 2010 +0100
$ uname -a
Linux dtjimk 2.6.35-ARCH #1 SMP PREEMPT Sat Aug 14 20:57:39 UTC 2010 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/Linux
Please provide any additional information below.
This patch appears to fix it.
@@ -64,8 +64,8 @@
if arg1 == KeyboardListener.KEY_UP:
selectedIndex = self.choices.getSelectedIndex()
selectedIndex -= 1
Original issue: http://code.google.com/p/pyjamas/issues/detail?id=489 (August 31, 2010 21:03:43)
From cornelis...@gmail.com on February 22, 2011 15:46:21:
Thanks. Committed fix in 7cbf7e1