Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17127 for trunk


Ignore:
Timestamp:
07/11/19 12:31:29 (5 years ago)
Author:
abeham
Message:

#1616: Implement Ctrl+A for selecting all

Location:
trunk/HeuristicLab.Core.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs

    r17118 r17127  
    248248          Clipboard.SetText(builder.ToString());
    249249        }
     250      } else if (itemsListView.MultiSelect && e.KeyData == (Keys.A | Keys.Control)) {
     251        try {
     252          itemsListView.BeginUpdate();
     253          foreach (ListViewItem item in itemsListView.Items)
     254            item.Selected = true;
     255        } finally { itemsListView.EndUpdate(); }
    250256      }
    251257    }
  • trunk/HeuristicLab.Core.Views/3.3/ItemListView.cs

    r17008 r17127  
    269269          Clipboard.SetText(builder.ToString());
    270270        }
     271      } else if (itemsListView.MultiSelect && e.KeyData == (Keys.A | Keys.Control)) {
     272        try {
     273          itemsListView.BeginUpdate();
     274          foreach (ListViewItem item in itemsListView.Items)
     275            item.Selected = true;
     276        } finally { itemsListView.EndUpdate(); }
    271277      }
    272278    }
Note: See TracChangeset for help on using the changeset viewer.