Little Registry Cleaner/Common Tools/TreeViewAdv/Tree/TreeViewAdv.Input.cs
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using Common_Tools.TreeViewAdv.Tree.NodeControls;
using System.Drawing.Imaging;
using System.Threading;
namespace Common_Tools.TreeViewAdv.Tree
{
public partial class TreeViewAdv
{
#region Keys
protected override bool IsInputChar(char charCode)
{
return true;
}
protected override bool IsInputKey(Keys keyData)
{
if (((keyData & Keys.Up) == Keys.Up)
|| ((keyData & Keys.Down) == Keys.Down)
|| ((keyData & Keys.Left) == Keys.Left)
|| ((keyData & Keys.Right) == Keys.Right))
return true;
else
return base.IsInputKey(keyData);
}
internal void ChangeInput()
{
if ((ModifierKeys & Keys.Shift) == Keys.Shift)
{
if (!(Input is InputWithShift))
Input = new InputWithShift(this);
}
else if ((ModifierKeys & Keys.Control) == Keys.Control)
{
if (!(Input is InputWithControl))
Input = new InputWithControl(this);
}
else
{
if (!(Input.GetType() == typeof(NormalInputState)))
Input = new NormalInputState(this);
}
}
protected override void OnKeyDown(KeyEventArgs e)
{
base.OnKeyDown(e);
if (!e.Handled)
{
if (e.KeyCode == Keys.ShiftKey || e.KeyCode == Keys.ControlKey)
ChangeInput();
Input.KeyDown(e);
if (!e.Handled)
{
后面还有 498 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。