[bugfix] Main Window: メッセージ入力欄Disabled時でも、フォーカスを当ててエンターキーを押せば、送信出来てしまっていたのを修正。

This commit is contained in:
Sakamoto Shiina
2024-01-07 05:49:17 +09:00
parent 827e92e6f3
commit 29def026fc
2 changed files with 6 additions and 0 deletions

View File

@@ -94,6 +94,8 @@ class View():
CALLBACK_WHEN_DETECT_WINDOW_OVERED_SIZE=self._showDisplayOverUiSizeConfirmationModal,
IS_ENTRY_MESSAGE_BOX_DISABLED=False,
# Confirmation Modal
CALLBACK_HIDE_CONFIRMATION_MODAL=None,
CALLBACK_ACCEPTED_CONFIRMATION_MODAL=None,
@@ -510,6 +512,8 @@ class View():
def adjustedMessageBoxReturnFunction(_e):
if self.view_variable.IS_ENTRY_MESSAGE_BOX_DISABLED is True:
return
if config.SEND_MESSAGE_BUTTON_TYPE != "show_and_disable_enter_key":
main_window_registers.get("message_box_bind_Return")()
return "break" # For deleting the next line that will be inserted when the Enter key is pressed.