Skip to content

Commit

Permalink
快捷键开关跨屏拖动设置 #6
Browse files Browse the repository at this point in the history
  • Loading branch information
developer-ken committed Sep 23, 2024
1 parent 6c3c907 commit 9d158ab
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 53 deletions.
87 changes: 51 additions & 36 deletions Config.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,36 @@ private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
parent.windowdock = (WindowDockingConner)comboBox1.SelectedIndex;
parent.SaveConfig();
}

private void label5_Click(object sender, EventArgs e)
{

}

private void CrosslockKeyBox_KeyDown(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.Control:
case Keys.LControlKey:
case Keys.RControlKey:
case Keys.Alt:
case Keys.Shift:
case Keys.LShiftKey:
case Keys.RShiftKey:
case Keys.LWin:
case Keys.RWin:
break;
case Keys.Escape:
parent.crosslock = e.KeyCode;
NextKeyBox.Text = "禁用";
break;
default:
parent.crosslock = e.KeyCode;
CrosslockKeyBox.Text = HotKeys.GetKeyName(parent.crosslock);
break;
}
parent.SaveConfig();
}
}
}
Loading

0 comments on commit 9d158ab

Please sign in to comment.