Free cookie consent management tool by TermsFeed Policy Generator

Changeset 18165 for trunk


Ignore:
Timestamp:
12/26/21 20:38:41 (3 years ago)
Author:
gkronber
Message:

#3047: fixed 'ding' sound on enter for StringConvertibleValueView

File:
1 edited

Legend:

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

    r17180 r18165  
    8686
    8787    protected virtual void valueTextBox_KeyDown(object sender, KeyEventArgs e) {
    88       if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return))
     88      if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) {
    8989        valueLabel.Select();  // select label to validate data
    90 
    91       if (e.KeyCode == Keys.Escape) {
     90        e.SuppressKeyPress = true;
     91      } else if (e.KeyCode == Keys.Escape) {
    9292        valueTextBox.Text = Content.GetValue();
    9393        valueLabel.Select();  // select label to validate data
     94        e.SuppressKeyPress = true;
    9495      }
    9596    }
Note: See TracChangeset for help on using the changeset viewer.