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



commit b54f26e37e8e5be67b87d37bc604a2af70b5e79b
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 197ebe9..b71bf65 100644
--- a/ease-core/ease-text-actor.vala
+++ b/ease-core/ease-text-actor.vala
@@ -146,6 +146,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]