commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9161 - trunk/gnue-forms/src/input/displayHandlers


From: johannes
Subject: [gnue] r9161 - trunk/gnue-forms/src/input/displayHandlers
Date: Wed, 13 Dec 2006 03:03:48 -0600 (CST)

Author: johannes
Date: 2006-12-13 03:03:46 -0600 (Wed, 13 Dec 2006)
New Revision: 9161

Modified:
   trunk/gnue-forms/src/input/displayHandlers/Cursor.py
Log:
Use the entry-style for checking multiline edits


Modified: trunk/gnue-forms/src/input/displayHandlers/Cursor.py
===================================================================
--- trunk/gnue-forms/src/input/displayHandlers/Cursor.py        2006-12-12 
21:15:10 UTC (rev 9160)
+++ trunk/gnue-forms/src/input/displayHandlers/Cursor.py        2006-12-13 
09:03:46 UTC (rev 9161)
@@ -240,9 +240,8 @@
   def __handleENTER(self, event):
 
         isNewLine = gConfigForms ('EnterIsNewLine')
-        lines     = getattr(self.entry, 'Char__height', 1)
 
-        if isNewLine and lines > 1:
+        if isNewLine and self.entry.style == 'multiline':
             event.text = '\n'
             self._addText(event)
             event.drop()





reply via email to

[Prev in Thread] Current Thread [Next in Thread]