2
0
Эх сурвалжийг харах

Delete and DeleteChar must have the same behavior.

BDisp 4 жил өмнө
parent
commit
a3ad62eef1

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

@@ -360,6 +360,7 @@ namespace Terminal.Gui {
 			var oldCursorPos = point;
 
 			switch (ShortcutHelper.GetModifiersKey (kb)) {
+			case Key.Delete:
 			case Key.DeleteChar:
 			case Key.D | Key.CtrlMask:
 				if (ReadOnly)
@@ -377,7 +378,6 @@ namespace Terminal.Gui {
 				}
 				break;
 
-			case Key.Delete:
 			case Key.Backspace:
 				if (ReadOnly)
 					return true;