提交 4784c1ad 编写于 作者: 之一Yo's avatar 之一Yo

fixes #120

上级 8818cf13
......@@ -368,6 +368,9 @@ class EditableComboBox(LineEdit, ComboBoxBase):
self.textEdited.connect(self._onTextEdited)
self.returnPressed.connect(self._onReturnPressed)
def currentText(self):
return self.text()
def _onReturnPressed(self):
if not self.text():
return
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册