Changeset 18176 for branches/3136_Structural_GP/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
- Timestamp:
- 01/03/22 12:23:11 (2 years ago)
- Location:
- branches/3136_Structural_GP
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP
- Property svn:mergeinfo changed
/trunk merged: 18165-18174
- Property svn:mergeinfo changed
-
branches/3136_Structural_GP/HeuristicLab.Data.Views
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Data.Views (added) merged: 18165-18166
- Property svn:mergeinfo changed
-
branches/3136_Structural_GP/HeuristicLab.Data.Views/3.3
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Data.Views/3.3 (added) merged: 18165-18166
- Property svn:mergeinfo changed
-
branches/3136_Structural_GP/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r17921 r18176 227 227 } 228 228 private void rowsTextBox_KeyDown(object sender, KeyEventArgs e) { 229 if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) 229 if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) { 230 230 rowsLabel.Focus(); // set focus on label to validate data 231 if (e.KeyCode == Keys.Escape) { 231 e.SuppressKeyPress = true; 232 } else if (e.KeyCode == Keys.Escape) { 232 233 rowsTextBox.Text = Content.Rows.ToString(); 233 234 rowsLabel.Focus(); // set focus on label to validate data 235 e.SuppressKeyPress = true; 234 236 } 235 237 } … … 249 251 } 250 252 private void columnsTextBox_KeyDown(object sender, KeyEventArgs e) { 251 if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) 253 if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) { 252 254 columnsLabel.Focus(); // set focus on label to validate data 253 if (e.KeyCode == Keys.Escape) { 255 e.SuppressKeyPress = true; 256 } else if (e.KeyCode == Keys.Escape) { 254 257 columnsTextBox.Text = Content.Columns.ToString(); 255 258 columnsLabel.Focus(); // set focus on label to validate data 259 e.SuppressKeyPress = true; 256 260 } 257 261 }
Note: See TracChangeset
for help on using the changeset viewer.