[Update] Main Window: メッセージ入力欄で、Shift+Enterキーを押した際に送信せず、ただ改行するように。

※VRC上では改行は削除される。
This commit is contained in:
Sakamoto Shiina
2024-01-05 08:40:11 +09:00
parent 5bb1a83ed9
commit c2a37057f1

View File

@@ -504,6 +504,7 @@ class View():
return "break" # For deleting the next line that will be inserted when the Enter key is pressed.
entry_message_box = getattr(vrct_gui, "entry_message_box")
entry_message_box.bind("<Shift-Return>", lambda _e: None) # This is to prevent message sending on Shift + Enter key press and just add a new line.
entry_message_box.bind("<Return>", adjustedMessageBoxReturnFunction)
entry_message_box.bind("<Any-KeyPress>", main_window_registers.get("message_box_bind_Any_KeyPress"))