From 29db6b73a5305f0167665006882fe4afb13b96c2 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Tue, 26 Apr 2016 11:12:34 +0300 Subject: [PATCH] fix EditLine ENTER key handling - close #248 --- src/dlangui/widgets/editors.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dlangui/widgets/editors.d b/src/dlangui/widgets/editors.d index 1ea5304d..b73ff480 100644 --- a/src/dlangui/widgets/editors.d +++ b/src/dlangui/widgets/editors.d @@ -1627,9 +1627,9 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction if (event.keyCode == KeyCode.SPACE && !readOnly) { return true; } - if (event.keyCode == KeyCode.RETURN && !readOnly && !_content.multiline) { - return true; - } + //if (event.keyCode == KeyCode.RETURN && !readOnly && !_content.multiline) { + // return true; + //} return super.onKeyEvent(event); }