mirror of https://github.com/buggins/dlangui.git
fix EditLine ENTER key handling - close #248
This commit is contained in:
parent
95a0d0370d
commit
29db6b73a5
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue