Changeset 17921


Ignore:
Timestamp:
03/30/21 08:39:03 (2 weeks ago)
Author:
gkronber
Message:

#3104: set e.Handled to true for Ctrl+C and Ctrl+V.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs

    r17841 r17921  
    298298
    299299    protected virtual void dataGridView_KeyDown(object sender, KeyEventArgs e) {
    300       if (!ReadOnly && e.Control && e.KeyCode == Keys.V)
     300      if (!ReadOnly && e.Control && e.KeyCode == Keys.V) {
    301301        PasteValuesToDataGridView();
    302       else if (e.Control && e.KeyCode == Keys.C)
     302        e.Handled = true;
     303      } else if (e.Control && e.KeyCode == Keys.C) {
    303304        CopyValuesFromDataGridView();
     305        e.Handled = true;
     306      }
    304307    }
    305308
Note: See TracChangeset for help on using the changeset viewer.