|
|
@@ -7,6 +7,7 @@ using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Windows.Forms;
|
|
|
using System.Runtime.InteropServices;
|
|
|
+using UAS_MES.PublicMethod;
|
|
|
|
|
|
namespace UAS_MES.CustomControl.TextBoxWithIcon
|
|
|
{
|
|
|
@@ -92,14 +93,13 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
|
|
|
{
|
|
|
if (e.Modifiers.CompareTo(Keys.Control) == 0 && e.KeyCode == Keys.A)
|
|
|
this.SelectAll();
|
|
|
-
|
|
|
- if (CapsLockStatus)
|
|
|
- {
|
|
|
- Console.WriteLine("大写");
|
|
|
- }
|
|
|
- else
|
|
|
+ //不允许开启大写扫描
|
|
|
+ if (e.KeyCode == Keys.Enter)
|
|
|
{
|
|
|
- Console.WriteLine("小写");
|
|
|
+ if (CapsLockStatus)
|
|
|
+ {
|
|
|
+ BaseUtil.ShowError("请关闭大写后进行采集");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|