C# 组合键 判断,文本框不接受纯回车enter

时间:2021-08-10 16:51:37   收藏:0   阅读:18

 if (e.Modifiers.CompareTo(Keys.Shift) == 0 && e.KeyCode == Keys.Enter)
                    {
                        return;
                    }
                    e.SuppressKeyPress = true;

原文:https://www.cnblogs.com/LuoCore/p/15124065.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!