mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
parent
45467c497f
commit
f0688308b8
@ -9793,7 +9793,7 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
|
|
||||||
int numberOfLines = Utilities.GetNumberOfLines(textBoxListViewText.Text);
|
int numberOfLines = Utilities.GetNumberOfLines(textBoxListViewText.Text);
|
||||||
|
|
||||||
if (e.Modifiers == Keys.None && e.KeyCode == Keys.Enter && numberOfLines > Configuration.Settings.General.MaxNumberOfLines)
|
if (e.Modifiers == Keys.None && e.KeyCode == Keys.Enter && numberOfLines >= Configuration.Settings.General.MaxNumberOfLines)
|
||||||
{
|
{
|
||||||
e.SuppressKeyPress = true;
|
e.SuppressKeyPress = true;
|
||||||
}
|
}
|
||||||
@ -25581,7 +25581,7 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
|
|
||||||
int numberOfLines = Utilities.GetNumberOfLines(textBoxListViewTextOriginal.Text);
|
int numberOfLines = Utilities.GetNumberOfLines(textBoxListViewTextOriginal.Text);
|
||||||
|
|
||||||
if (e.Modifiers == Keys.None && e.KeyCode == Keys.Enter && numberOfLines > Configuration.Settings.General.MaxNumberOfLines)
|
if (e.Modifiers == Keys.None && e.KeyCode == Keys.Enter && numberOfLines >= Configuration.Settings.General.MaxNumberOfLines)
|
||||||
{
|
{
|
||||||
e.SuppressKeyPress = true;
|
e.SuppressKeyPress = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user