[ease/text] [text] Delete key works.



commit f36624152f054e918285b899d9f0cbd5b5ceb4a5
Author: Nate Stedman <natesm gmail com>
Date:   Tue Nov 30 02:25:48 2010 -0500

    [text] Delete key works.

 ease-core/ease-text-actor.vala |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ease-core/ease-text-actor.vala b/ease-core/ease-text-actor.vala
index b71bf65..9ed22aa 100644
--- a/ease-core/ease-text-actor.vala
+++ b/ease-core/ease-text-actor.vala
@@ -155,6 +155,15 @@ public class Ease.TextActor : Actor
 					}
 					break;
 				
+				case Key.DELETE:
+					if (cursor_index < text.layout.get_text().length)
+					{
+						text.delete(cursor_index);
+						cursor.opacity = 255;
+						cursor_timeline.rewind();
+					}
+					break;
+				
 				case Key.LEFT:
 					cursor_index = int.max(cursor_index - 1, 0);
 					cursor.opacity = 255;



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