Skip to content

Commit

Permalink
feat: 增加工具切换快捷键
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYunPlayer committed Sep 9, 2024
1 parent 94bfec6 commit 6d63bee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TuneLab/UI/MainWindow/Editor/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ protected override void OnKeyDown(KeyEventArgs e)
{
Redo();
}
else if (e.ModifierKeys() == ModifierKeys.None && e.Key >= Key.D1 && e.Key <= Key.D6)
{
mPianoWindow.PianoTool.Value = (PianoTool)(e.Key - Key.D1);
}
else
{
e.Handled = false;
Expand Down

0 comments on commit 6d63bee

Please sign in to comment.