Skip to content

Commit

Permalink
Add support for CTRL+A on the List
Browse files Browse the repository at this point in the history
  • Loading branch information
julianxhokaxhiu committed Sep 26, 2020
1 parent 666a963 commit d33b013
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Entry.Designer.cs

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

14 changes: 14 additions & 0 deletions src/Entry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Runtime.InteropServices;
using System.Windows.Forms;
using FF7SND.Core;
using System.Linq;

namespace FF7SND
{
Expand Down Expand Up @@ -163,5 +164,18 @@ private void btnExtract_Click(object sender, EventArgs e)
}

}

private void Entry_KeyUp(object sender, KeyEventArgs e)
{
if ((Control.ModifierKeys & Keys.Control) == Keys.Control)
{
switch (e.KeyCode)
{
case Keys.A:
lstView.Items.OfType<ListViewItem>().ToList().ForEach(item => item.Selected = true);
break;
}
}
}
}
}

0 comments on commit d33b013

Please sign in to comment.