mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
Delete and DeleteChar must have the same behavior.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user