- Timestamp:
- 12/26/21 20:38:41 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.cs
r17180 r18165 86 86 87 87 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)) { 89 89 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) { 92 92 valueTextBox.Text = Content.GetValue(); 93 93 valueLabel.Select(); // select label to validate data 94 e.SuppressKeyPress = true; 94 95 } 95 96 }
Note: See TracChangeset
for help on using the changeset viewer.