mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Allow more keys in GoToLine and Enter=OK
This commit is contained in:
parent
e52e66ae88
commit
453d4dd802
@ -86,9 +86,13 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
(e.KeyValue >= 96 && e.KeyValue <= 105))
|
||||
{
|
||||
}
|
||||
else if (e.KeyData == (Keys.Shift | Keys.Home) || e.KeyData == (Keys.Shift | Keys.End) || e.KeyData == (Keys.Control | Keys.A))
|
||||
else if (e.KeyData == (Keys.Shift | Keys.Home) || e.KeyData == (Keys.Shift | Keys.End))
|
||||
{
|
||||
}
|
||||
else if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
ButtonOkClick(null, null);
|
||||
}
|
||||
else if (e.KeyData == (Keys.Control | Keys.V) && Clipboard.GetText(TextDataFormat.UnicodeText).Length > 0)
|
||||
{
|
||||
string p = Clipboard.GetText(TextDataFormat.UnicodeText);
|
||||
@ -98,7 +102,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
e.SuppressKeyPress = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (e.Modifiers != Keys.Control && e.Modifiers != Keys.Alt)
|
||||
{
|
||||
e.Handled = true;
|
||||
e.SuppressKeyPress = true;
|
||||
|
Loading…
Reference in New Issue
Block a user