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()
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue