👍️[Update] Model : messagebox send/typing/typing_stopを追加

This commit is contained in:
misyaguziya
2024-09-02 12:05:27 +09:00
parent 1f5a27343d
commit 5697f3273f
2 changed files with 12 additions and 6 deletions

View File

@@ -349,16 +349,20 @@ class ChatMessage:
},
}
def callbackMessageBoxPressKeyEnter(data, action, *args, **kwargs) -> dict:
def callbackMessageBoxSend(data, action, *args, **kwargs) -> dict:
chat = ChatMessage(action)
response = chat.send(data)
return response
def messageBoxPressKeyAny(e):
def callbackMessageBoxTyping(*args, **kwargs) -> dict:
if config.ENABLE_SEND_MESSAGE_TO_VRC is True:
model.oscStartSendTyping()
else:
return {"status":200}
def callbackMessageBoxTypingStop(*args, **kwargs) -> dict:
if config.ENABLE_SEND_MESSAGE_TO_VRC is True:
model.oscStopSendTyping()
return {"status":200}
def messageBoxFocusIn(e):
# view.foregroundOffIfForegroundEnabled()