diff --git a/SekaiToolsGUI/View/Translate/Components/TranslateLineDialog.xaml.cs b/SekaiToolsGUI/View/Translate/Components/TranslateLineDialog.xaml.cs index 3d32c36..7c614a8 100644 --- a/SekaiToolsGUI/View/Translate/Components/TranslateLineDialog.xaml.cs +++ b/SekaiToolsGUI/View/Translate/Components/TranslateLineDialog.xaml.cs @@ -32,7 +32,7 @@ private void TextBox_PreviewKeyDown(object sender, KeyEventArgs e) if (sender is not TextBox textBox) return; if (e.Key != Key.Enter) return; var lineCount = textBox.LineCount; - if (lineCount >= 2) e.Handled = true; // 阻止回车键输入新行 + if (lineCount >= 3) e.Handled = true; // 阻止回车键输入新行 } private void TextBox_PreviewTextInput(object sender, TextCompositionEventArgs e) @@ -41,6 +41,6 @@ private void TextBox_PreviewTextInput(object sender, TextCompositionEventArgs e) var newText = textBox.Text.Insert(textBox.CaretIndex, e.Text); var newLineCount = newText.Split('\n').Length; - if (newLineCount > 2) e.Handled = true; // 阻止输入导致超过三行 + if (newLineCount > 3) e.Handled = true; // 阻止输入导致超过三行 } } \ No newline at end of file