feat: 新增时间输入和Alt按钮快捷键
This commit is contained in:
@@ -42,10 +42,29 @@ namespace Lskj.Control
|
||||
public partial class AuditPanelEx : UserControl
|
||||
{
|
||||
private bool mResourcesReleased;
|
||||
private readonly AltButtonShortcutManager mAltButtonShortcuts =
|
||||
new AltButtonShortcutManager();
|
||||
|
||||
public AuditPanelEx()
|
||||
{
|
||||
InitializeComponent();
|
||||
InitializeAltButtonShortcuts();
|
||||
}
|
||||
|
||||
private void InitializeAltButtonShortcuts()
|
||||
{
|
||||
mAltButtonShortcuts.Register(btnOkAudit, Keys.Y);
|
||||
mAltButtonShortcuts.Register(btnBackAudit, Keys.B);
|
||||
mAltButtonShortcuts.Register(btnRefresh, Keys.R);
|
||||
mAltButtonShortcuts.Register(btnBack, Keys.W);
|
||||
mAltButtonShortcuts.Register(btnSearch, Keys.Q);
|
||||
}
|
||||
|
||||
protected override bool ProcessCmdKey(
|
||||
ref System.Windows.Forms.Message msg, Keys keyData)
|
||||
{
|
||||
return mAltButtonShortcuts.ProcessKey(keyData) ||
|
||||
base.ProcessCmdKey(ref msg, keyData);
|
||||
}
|
||||
|
||||
internal void ReleaseResourcesForDispose()
|
||||
|
||||
Reference in New Issue
Block a user