[Thinlet-development] thinlet/src/java/thinlet Thinlet.java,1.21,1.22
Brought to you by:
bajzat
From: Andrzej B. <ab...@us...> - 2005-01-18 15:57:30
|
Update of /cvsroot/thinlet/thinlet/src/java/thinlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3660 Modified Files: Thinlet.java Log Message: Revert a fix for lock-up when traversing lists, where the selected item has been just deleted. Unfortunately the fix completely broke the keyboard navigation of trees. At this time a proper fix is not known, so the lock-up still occurs. Patches are welcome! Index: Thinlet.java =================================================================== RCS file: /cvsroot/thinlet/thinlet/src/java/thinlet/Thinlet.java,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- Thinlet.java 18 Jan 2005 12:00:14 -0000 1.21 +++ Thinlet.java 18 Jan 2005 15:57:16 -0000 1.22 @@ -2235,9 +2235,9 @@ // ("tree" // == classname)) Object lead = get(component, ":lead"); - if (getIndex(component, lead) == -1) { - set(component, ":lead", lead = null); - } + //if (getIndex(component, lead) == -1) { + // set(component, ":lead", lead = null); + //} int[] columnwidths = ("table" == classname) ? ((int[]) get(component, ":widths")) : null; boolean line = getBoolean(component, "line", true); int iline = line ? 1 : 0; @@ -3460,9 +3460,9 @@ (keycode == KeyEvent.VK_DOWN) || (keycode == KeyEvent.VK_PAGE_UP) || (keycode == KeyEvent.VK_PAGE_DOWN) || (keycode == KeyEvent.VK_HOME) || (keycode == KeyEvent.VK_END)) { Object lead = get(component, ":lead"); - if (getIndex(component, lead) == -1) { - set(component, ":lead", lead = null); - } + //if (getIndex(component, lead) == -1) { + // set(component, ":lead", lead = null); + //} Object row = getListItem(component, component, keycode, lead, recursive); if (row != null) { String selection = getString(component, "selection", "single"); |