mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Merge pull request #4951 from OmrSi/menu-shortcuts-undocked-patch
Fix menu shortcuts not working controls undocked
This commit is contained in:
commit
dfb7b50b19
@ -30096,5 +30096,13 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool ProcessCmdKeyFromChildForm(ref Message msg, Keys keyData)
|
||||
{
|
||||
Message messageCopy = msg;
|
||||
messageCopy.HWnd = Handle;
|
||||
|
||||
return ProcessCmdKey(ref messageCopy, keyData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -53,5 +53,15 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
_mainForm.MainKeyDown(sender, e);
|
||||
}
|
||||
}
|
||||
|
||||
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
|
||||
{
|
||||
if (_mainForm.ProcessCmdKeyFromChildForm(ref msg, keyData))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return base.ProcessCmdKey(ref msg, keyData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -168,5 +168,14 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
Refresh();
|
||||
}
|
||||
|
||||
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
|
||||
{
|
||||
if (_mainForm.ProcessCmdKeyFromChildForm(ref msg, keyData))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return base.ProcessCmdKey(ref msg, keyData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -50,5 +50,15 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
_mainForm.MainKeyDown(sender, e);
|
||||
}
|
||||
}
|
||||
|
||||
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
|
||||
{
|
||||
if (_mainForm.ProcessCmdKeyFromChildForm(ref msg, keyData))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return base.ProcessCmdKey(ref msg, keyData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user