Browse Source

Undo for now

Miguel de Icaza 7 years ago
parent
commit
d17fb45852
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Terminal.Gui/Views/TextField.cs

+ 2 - 1
Terminal.Gui/Views/TextField.cs

@@ -160,6 +160,7 @@ namespace Terminal.Gui {
 		{
 		{
 			switch (kb.Key) {
 			switch (kb.Key) {
 			case Key.Delete:
 			case Key.Delete:
+#if false
 			case Key.DeleteChar:
 			case Key.DeleteChar:
 				if (text.Length == 0 || text.Length == point)
 				if (text.Length == 0 || text.Length == point)
 					return true;
 					return true;
@@ -167,7 +168,7 @@ namespace Terminal.Gui {
 				SetText (text [0, point] + text [point + 1, null]);
 				SetText (text [0, point] + text [point + 1, null]);
 				Adjust ();
 				Adjust ();
 				break;
 				break;
-
+#endif
 			case Key.Backspace:
 			case Key.Backspace:
 				if (point == 0)
 				if (point == 0)
 					return true;
 					return true;