diff --git a/src/dlangui/core/editable.d b/src/dlangui/core/editable.d index 50474c7a..3e9f7e31 100644 --- a/src/dlangui/core/editable.d +++ b/src/dlangui/core/editable.d @@ -1251,7 +1251,7 @@ class EditableContent { /// redoes last undone change bool redo(Object source) { - if (!hasUndo) + if (!hasRedo) return false; if (_readOnly) throw new Exception("content is readonly"); diff --git a/src/dlangui/widgets/editors.d b/src/dlangui/widgets/editors.d index b3969fa7..352ff7db 100644 --- a/src/dlangui/widgets/editors.d +++ b/src/dlangui/widgets/editors.d @@ -376,7 +376,8 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction new Action(EditorActions.ToggleLineComment, KeyCode.KEY_DIVIDE, KeyFlag.Control), new Action(EditorActions.ToggleBlockComment, KeyCode.KEY_DIVIDE, KeyFlag.Control | KeyFlag.Shift), - new Action(EditorActions.DeleteLine, KeyCode.KEY_Y, KeyFlag.Control), + new Action(EditorActions.DeleteLine, KeyCode.KEY_D, KeyFlag.Control), + new Action(EditorActions.DeleteLine, KeyCode.KEY_L, KeyFlag.Control), new Action(EditorActions.InsertLine, KeyCode.RETURN, KeyFlag.Control), ]); }