Author: johannes
Date: 2006-08-21 03:46:19 -0500 (Mon, 21 Aug 2006)
New Revision: 8574

Modified:
   branches/forms-0.5/src/input/displayHandlers/Cursor.py
   branches/forms-0.5/src/input/displayHandlers/Dropdown.py
Log:
added Auto-Select-All for dropdowns and fixed refreshDisplay for 
requestCURSORRIGHT on the last character


Modified: branches/forms-0.5/src/input/displayHandlers/Cursor.py
===================================================================
--- branches/forms-0.5/src/input/displayHandlers/Cursor.py      2006-08-18 
16:02:42 UTC (rev 8573)
+++ branches/forms-0.5/src/input/displayHandlers/Cursor.py      2006-08-21 
08:46:19 UTC (rev 8574)
@@ -490,8 +490,9 @@
 
     if self._cursor < len(self.display):
       self._cursor += 1
-      event.refreshDisplay = True
 
+    event.refreshDisplay = True
+
   def _moveCursorToEnd(self, event, selecting=False):
     """
     Moves the cursor to the end optionally selecting the text.

Modified: branches/forms-0.5/src/input/displayHandlers/Dropdown.py
===================================================================
--- branches/forms-0.5/src/input/displayHandlers/Dropdown.py    2006-08-18 
16:02:42 UTC (rev 8573)
+++ branches/forms-0.5/src/input/displayHandlers/Dropdown.py    2006-08-21 
08:46:19 UTC (rev 8574)
@@ -76,6 +76,7 @@
 
     self._cursor = len(self.display)
     # Make sure to keep the UI in sync !
+    self.setSelectionArea(0, self._cursor)
     self.generateRefreshEvent()
 
 



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to