From a6903953a07d50116da33fa232a08c045e12ffa4 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 23 Apr 2018 18:55:58 -0700 Subject: [PATCH] Re-add old boxtab clicks #1910 --- PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs index b8f7d09fd..115ff26d5 100644 --- a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs +++ b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs @@ -366,10 +366,18 @@ private void GetSlotFiller(int offset, PictureBox pb) #region Box Manipulation private void ClickBoxSort(object sender, MouseEventArgs e) { - if (tabBoxMulti.SelectedTab != Tab_Box || !e.Button.HasFlag(MouseButtons.Right)) + if (tabBoxMulti.SelectedTab != Tab_Box) return; if (!tabBoxMulti.GetTabRect(tabBoxMulti.SelectedIndex).Contains(PointToClient(MousePosition))) return; + if (!e.Button.HasFlag(MouseButtons.Right)) + { + if (ModifierKeys.HasFlag(Keys.Alt)) + SortMenu.Items[0].PerformClick(); // Clear + else if (ModifierKeys.HasFlag(Keys.Control)) + SortMenu.Items[1].PerformClick(); // Sort + return; + } var pt = Tab_Box.PointToScreen(new Point(0, 0)); SortMenu.Show(pt); }