Delete and DeleteChar must have the same behavior.

This commit is contained in:
BDisp
2020-11-14 19:18:44 +00:00
parent 3ab8dff1a7
commit a3ad62eef1

View File

@@ -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;