Author: johannes
Date: 2006-08-21 03:47:53 -0500 (Mon, 21 Aug 2006)
New Revision: 8575

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


Modified: trunk/gnue-forms/src/input/displayHandlers/Cursor.py
===================================================================
--- trunk/gnue-forms/src/input/displayHandlers/Cursor.py        2006-08-21 
08:46:19 UTC (rev 8574)
+++ trunk/gnue-forms/src/input/displayHandlers/Cursor.py        2006-08-21 
08:47:53 UTC (rev 8575)
@@ -467,8 +467,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: trunk/gnue-forms/src/input/displayHandlers/Dropdown.py
===================================================================
--- trunk/gnue-forms/src/input/displayHandlers/Dropdown.py      2006-08-21 
08:46:19 UTC (rev 8574)
+++ trunk/gnue-forms/src/input/displayHandlers/Dropdown.py      2006-08-21 
08:47:53 UTC (rev 8575)
@@ -79,6 +79,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