This commit is contained in:
Black Hat 2018-11-26 12:17:40 +08:00
parent 1c499ddb90
commit 8c32dbc487
2 changed files with 6 additions and 1 deletions

View File

@ -41,6 +41,7 @@ Menu {
roomPanelInput.replyEventID = model.eventId
roomPanelInput.replyContent = selectedText != "" ? selectedText : model.message
roomPanelInput.isReply = true
roomPanelInput.focus()
}
}
MenuItem {

View File

@ -214,7 +214,7 @@ Control {
selectByMouse: true
verticalAlignment: TextEdit.AlignVCenter
text: currentRoom ? currentRoom.cachedInput : ""
text: currentRoom != null ? currentRoom.cachedInput : ""
background: Item {
}
@ -389,4 +389,8 @@ Control {
replyEventID = ""
replyContent = ""
}
function focus() {
inputField.forceActiveFocus()
}
}