Author: johannes
Date: 2006-08-17 07:00:55 -0500 (Thu, 17 Aug 2006)
New Revision: 8565
Modified:
trunk/gnue-forms/src/input/displayHandlers/Cursor.py
trunk/gnue-forms/src/input/displayHandlers/Password.py
trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
Log:
Always do a SelectAll on entering editmode via keyboard focus
Modified: trunk/gnue-forms/src/input/displayHandlers/Cursor.py
===================================================================
--- trunk/gnue-forms/src/input/displayHandlers/Cursor.py 2006-08-17
11:59:21 UTC (rev 8564)
+++ trunk/gnue-forms/src/input/displayHandlers/Cursor.py 2006-08-17
12:00:55 UTC (rev 8565)
@@ -213,6 +213,7 @@
self._cursor = len(self.display)
# Ensure cursor is properly placed.
+ self.setSelectionArea(0, self._cursor)
self.generateRefreshEvent()
def endEdit(self):
Modified: trunk/gnue-forms/src/input/displayHandlers/Password.py
===================================================================
--- trunk/gnue-forms/src/input/displayHandlers/Password.py 2006-08-17
11:59:21 UTC (rev 8564)
+++ trunk/gnue-forms/src/input/displayHandlers/Password.py 2006-08-17
12:00:55 UTC (rev 8565)
@@ -61,6 +61,7 @@
self.cursor = len(self.display)
# Ensure cursor is properly placed.
+ self.setSelectionArea(0, self.cursor)
self.generateRefreshEvent()
Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py 2006-08-17
11:59:21 UTC (rev 8564)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py 2006-08-17
12:00:55 UTC (rev 8565)
@@ -396,6 +396,10 @@
args = widget.GetMark()
restore = widget.SetMark
+ elif isinstance(widget, wx.TextCtrl):
+ args = widget.GetSelection()
+ restore = widget.SetSelection
+
elif hasattr(widget, 'GetInsertionPoint'):
args = (widget.GetInsertionPoint(),)
restore = widget.SetInsertionPoint
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue