Private
Public Access
Fixed where the row and cols wouldn't change when navigating with arrow keys
This commit is contained in:
1 parent
4d54935615
commit
98ac780f76
2 files changed
+6
-1
No files matched your search
Generated
+1
@@ -70,6 +70,7 @@ namespace Advanced_Software_Engineering
|
||||
this.textBox1.Click += new System.EventHandler(this.textBox1_Click);
|
||||
this.textBox1.TextChanged += new System.EventHandler(this.handleKeypress);
|
||||
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Text_Editor_PreviewKeyDown);
|
||||
this.textBox1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyUp);
|
||||
//
|
||||
// menuStrip1
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -232,6 +232,8 @@ namespace Advanced_Software_Engineering {
|
||||
} else if (e.KeyCode == Keys.F1 && e.Shift) {
|
||||
DescribeCode();
|
||||
e.Handled = true;
|
||||
} else {
|
||||
updateRowCol();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -243,5 +245,7 @@ namespace Advanced_Software_Engineering {
|
||||
updateRowCol();
|
||||
timer1.Stop();
|
||||
}
|
||||
|
||||
private void textBox1_KeyUp(object sender, KeyEventArgs e) => updateRowCol();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user